SUMIFS explained with one example: totals by branch and month
The formula that replaces filtering and adding by hand, with the three rules that prevent most errors.
SUMIFS is the formula that replaces most manual reports in an office. Anyone who filters a sheet, selects the amounts and writes the total on a piece of paper is doing by hand what SUMIFS does in one line. Here it is, step by step.
The question it answers
"What were the total sales of the Pune branch in April?" That is a total with two conditions: branch is Pune, and month is April. SUMIFS adds the numbers in one column, but only for the rows where every condition is true.
The pattern
The order is: the range to add first, then pairs of a range to check and the condition for it. With amounts in column J, branches in column D and months in column B, rows 2 to 25:
=SUMIFS(J2:J25,D2:D25,"Pune",B2:B25,"Apr")
Read it aloud: add J, where D is Pune and B is April. You can add more pairs for more conditions, such as salesperson or payment status.
Three rules that prevent most errors
- Text goes in straight double quotes. Without quotes, the spreadsheet looks for something named Pune and shows an error or zero.
- Every range covers the same rows. If one range is rows 2 to 25 and another is rows 2 to 30, you get #VALUE!.
- The range to add comes first. SUMIF, the single-condition version, puts it last, which confuses everyone. Learn SUMIFS and use it for one condition too.
Conditions with signs and dates
For amounts above a value, put the sign in quotes: ">5000". To take the value from a cell, join the sign and the cell with an ampersand: ">="&M1. For a date range on real dates, use two conditions on the same date column, one for on or after the first day and one for on or before the last day.
From one answer to a whole report
Type the four branch names down a column and the three months across a row. Write one SUMIFS in the first cell that points at the branch name on its left and the month above it, lock the parts that must not move with the F4 key (the branch column and the month row), and fill the formula across and down. You now have a branch-by-month grid that updates the moment anyone corrects an invoice.
Check your answer
Filter the data to the same branch and month, select the amounts and look at the status bar at the bottom of the window. The sum shown there should match your formula. When two methods agree, you can trust the report.
SUMIFS has two cousins that follow the same pattern: COUNTIFS counts matching rows and AVERAGEIFS averages them. Learn the one pattern and you have all three. The Sheetsprint Practice Workbook has exercises on all of them with the exact answers to check against.