Blog · Excel

SUMIFS in Excel: explained simply

You have a sales list and want to know: how much did the North region sell in January? SUMIFS adds up exactly the rows that match your conditions. Here you see what goes into the formula, what to select and how to enter it step by step.

The whole formula
=SUMIFS(D2:D13, A2:A13, F2, B2:B13, G2)
1 · What do I add up?2 · Condition 13 · Condition 2
In one sentence

SUMIFS asks: what should I add up, and which conditions must the rows meet? First comes the column with the numbers, then always a pair of column and condition.

What stands for what?

The formula has three parts. The first is a column; the other two are pairs: where Excel checks and what must be there.

1 · What do I add up?
sum_range

The column with the numbers, here the revenue: D2:D13.

You select the column from row 2 to 13. In SUMIFS it always comes first.

2 · Condition 1
criteria_range1, criteria1

Where do I check, and what must be there? Region column A2:A13, condition in F2 (“North”).

You select the column, type a comma, then click the cell with the condition.

3 · Condition 2
criteria_range2, criteria2

The second pair: month column B2:B13, condition in G2 (“January”).

Same as condition 1. Add more pairs the same way.

Rule of thumb: numbers first, then always pairs of column and condition. All columns run from the same row to the same row.

The use case: revenue per region and month

On the left is the sales list, on the right a small summary. Column H should show the revenue for each combination of region and month. The colours show what you select:

ABCDEFGH
1RegionMonthProductRevenueRegionMonthRevenue
2NorthJanuaryCoffee1200NorthJanuary=SUMIFS(D2,A2:A13,F2,B2:B13,G2)
3SouthJanuaryCoffee950SouthJanuary
4NorthJanuaryTea600NorthFebruary
5WestJanuaryCoffee700SouthFebruary
……………
13WestJanuaryTea250
1 · What do I add up? (D2:D13)2 · Condition 1: region (A2:A13 = F2)3 · Condition 2: month (B2:B13 = G2)The formula goes here (H2)

Practice data to copy

Open a blank Excel workbook. Click “Copy data”, click the cell shown in Excel and press Ctrl+V.

Sales listpaste into cell A1
RegionMonthProductRevenue
NorthJanuaryCoffee1200
SouthJanuaryCoffee950
NorthJanuaryTea600
WestJanuaryCoffee700
SouthFebruaryTea400
NorthFebruaryCoffee1100
SouthJanuaryTea300
NorthFebruaryTea500
WestFebruaryCoffee800
SouthFebruaryCoffee1000
NorthJanuaryCoffee450
WestJanuaryTea250
Summarypaste into cell F1
RegionMonthRevenue
NorthJanuary
SouthJanuary
NorthFebruary
SouthFebruary

Step by step: how to enter the formula

  1. Click cell H2. This is where the revenue should appear.
  2. Type =SUMIFS(Excel now shows a small tooltip with the part that comes next.
  3. Select D2 to D13, the revenue: press the mouse on D2, hold, drag to D13, let go. Press F4 and type a comma ,.F4 adds the dollar signs. They lock the range when you drag the formula down.
  4. Select A2 to A13, the regions. F4, comma. Then click F2 (North) and type a comma.
  5. Select B2 to B13, the months. F4, comma. Then click G2 (January).
  6. Type ) and press Enter. H2 now shows 2250: all revenue of the North region in January.
  7. Copy the formula to all rows: click H2 and double-click the small square at the bottom right. Excel fills down to row 5.

Done. Your formula looks like this:

What your result looks like

Check one row by hand: North in January is 1200 + 600 + 450 = 2250. If that is right, the others are too.

RegionMonthRevenue
NorthJanuary2250
SouthJanuary1250
NorthFebruary1600
SouthFebruary1400

Two extras once the basic formula works

Just one condition

Simply leave out the second pair. This formula adds up all revenue of the West region: result 1750. Text goes in quotation marks.

Use a comparison

Conditions can also be comparisons. This formula adds up only revenue above 500: result 6350. Here the sum and the condition check the same column.

If it does not work

  • Result 0 – the condition does not match exactly. Often a stray space or a typo, such as “North ” instead of “North”.
  • #VALUE! – the columns have different lengths. All must run from row 2 to row 13.
  • Wrong total – the revenue column is not first. In SUMIFS it always comes first; in the older SUMIF it comes last.
  • Numbers are not added – they are stored as text (green triangle in the cell). Select them, click the warning icon, “Convert to Number”.

Excel formulas your team actually uses

This exercise comes from our advanced Excel training. Your team works with SUMIFS, XLOOKUP, pivot tables and charts on their own data, as corporate Excel training on site or live online. A good next read: XLOOKUP explained simply.

About the author: Joern Steinz

Joern Steinz is a trainer and the founder of SkillDay. Since 2014 he has facilitated more than 1.000 workshops and trainings, for clients including Allianz, DHL, Lufthansa and Siemens. In his Excel trainings, teams work with real data and leave with templates they use right away.

Deutsche Version: SUMMEWENNS in Excel ganz einfach erklärt · More Excel tips: XLOOKUP explained simply and Excel drop-down list

SUMIFS: frequently asked questions

What is the difference between SUMIF and SUMIFS?
SUMIF checks one condition and the number column comes last. SUMIFS checks as many conditions as you like and the number column comes first. If you only learn one, learn SUMIFS.
How many conditions can SUMIFS check?
Up to 127 pairs of column and condition. Two or three are usually enough.
Can I use a date as a condition?
Yes, also with comparisons such as greater than or equal to a date. The easiest way is to put the date in a cell and refer to it, for example ">="&J1.
Do I select the headers too?
No. Select only the data from row 2. What matters is that all columns start and end in the same row.
Is SUMIFS available in Google Sheets?
Yes, with the same name, and it works the same way.

Microsoft and Excel are trademarks of the Microsoft group of companies; Google Sheets is a trademark of Google LLC. SkillDay is an independent training provider. The practice data is fictitious.