Excel Sumif

To sum cells based on one criteria in Excel, you can use the SUMIF function. In a similar way, you can use the AVERAGEIF and the COUNTIF function.

Sumif Example

In this easy example, we are going to calculate the total sales in the UK.

Sumif Example

You can download the accompanied Excel file if you want.

Sumif Function

To insert the SUMIF function, execute the following steps.

1. Select the cell that you want to contain the function.

2. Click the Insert Function button.

Sumif Function

The 'Insert Function' dialog box appears.

3. Search for the SUMIF function or select SUMIF from the Math & Trig category.

Insert the Sumif Function

4. Click OK.

The 'Function Arguments' dialog box appears.

5. Click the button next to the Range textbox and select the range with address C2:C15 (the range of cells to review).

6. Enter the Criterion. Type UK.

7. Click the button next to the Sum_range textbox and select the range with address B2:B15 (the actual cells to sum).

Function Arguments Dialog Box

8. Click OK.

Result. Excel calculates the total sales in the UK.

Sumif Result

To sum cells based on multiple criteria, you can use the SUMIFS function.

Did you like this free Excel tutorial? Show your appreciation, vote for us.

1. Show your appreciation, vote for us

Thank you very much! We've got many more free Excel tutorials for you. Read on, learn, and enjoy!

2. Learn more
 

Go to Top: Excel Sumif    |    Go to Next Tutorial: Excel Sumifs

  • Follow us