Fresh Excel Tips

Quick and Easy Excel Tips and Tutorials

How to use the SUMIF function within a formula in Excel

In this example, all the sales of different restaurant branch regions have to be summed up. You can use the SUMIF function to add all cells in a range, specified by a given criteria.
Here is the syntax for the function: SUMIF(range, criteria, sum_range)
Range: A range of cells to be evaluated.
Criteria: The criteria that specifies which cells to add. This can be a number, expression, or text.
Sum Range: The actual cells to be summed.

How to use the SUMIF Function to sum specified data

  1. In cells A2:A10 enter a Region number. In this example, we’ll use numbers from 1 - 3.
  2. List all Branch names in cells B2:B10.
  3. In cells C2:C10 enter the Monthly sales for each branch.
  4. List the region numbers used in cells E2:E4.
  5. Select cells F2:F4 and type the following formula: =SUMIF($A$2:$A$10,E2,$C$2:$C$10).
  6. Press Ctrl+Enter.

How to use the SUMIF function within a formula in Excel

You should now be set! This works for Excel 97, 2000, 2003 and 2007.

How to use the SUMIF function within a formula in Excel
  1. How to use SUMIF to add values higher than a certain amount
  2. Using the SUM function to Sum a Range of Values in Excel
  3. How to use the SUMPRODUCT function in a formula in Excel
  4. How to use the COUNTIF function to count values in Excel
  5. How to Use the SUMSQ function to determine the square sum

Leave a Reply