How to use the SUMIFS function in Microsoft Excel

SUMIFS adds up numbers in one range only when rows meet several conditions at once. It suits anyone who tracks sales, expenses or inventory in Excel and wants totals per person or product. You only need a spreadsheet with a number column and one or more columns to test.

YouTube video: How to use the SUMIFS function in Microsoft Excel

Captions are available. Use CC in the YouTube player.

Other videos for this task

Video length
1 min 15 s
Time to do it
10 minutes
Difficulty
Easy
Steps
8

What you need

Steps

  1. Open your spreadsheet and click an empty cell where the total should appear.

  2. Type =SUMIFS( to start the formula. Excel will prompt you for each part in order.

  3. Enter the range to add, such as the sales amount column, then type a comma.

  4. Enter the first criteria range, such as the salesperson column, then a comma.

  5. Enter the first condition in quotes, such as "Ana", then a comma.

  6. Add more range and condition pairs for each extra test, separated by commas.

  7. Close the bracket and press Enter to see the total.

  8. Copy the formula down or across if you need the same total for other conditions.

Tips and common mistakes

All ranges must be the same size, or Excel returns a #VALUE! error.

Text conditions go in quotes, but numbers and cell references do not.

Use SUMIF instead when you only have one condition to test.

Questions

What is the difference between SUMIF and SUMIFS?

SUMIF handles a single condition. SUMIFS accepts two or more range and condition pairs, so use it when you need to filter on several columns.

Can I use wildcards in the conditions?

Yes. A condition like "A*" matches any text starting with A, which helps when product names vary.

Why do I get zero instead of a total?

Check that the criteria match the cell contents exactly and that no range is a different size from the sum range.

The notes are drafted automatically from video details and general task knowledge. How the guide was prepared

Report a correction

More in Money & Office

See all