SUMIFS Formula Generator

Add as many criteria as you need and get a SUMIFS formula with the arguments in the right order.

The numbers to add up. In SUMIFS this comes first — the opposite of SUMIF.

Condition 1

East, >=1000, or >=B1

Condition 2 (optional)

East, >=1000, or >=B1

When to use SUMIFS

  • Totalling one region, one month, or one account code
  • Adding up rows that meet several conditions at once
  • Building a summary table from a long transaction list

How the formula works

Taking the example on this page apart, piece by piece:

=SUMIFS($C$2:$C$3,$B$2:$B$3,"East")

  1. $C$2:$C$3

    The numbers to add up. In SUMIFS this comes first; in SUMIF it comes last.

  2. $B$2:$B$3

    The condition: the range to check on each row.

  3. "East"

    Only rows where $B$2:$B$3 is East. Text goes in quotes.

Where it goes wrong

  • Putting the sum range last

    SUMIF takes the sum range last; SUMIFS takes it first. Swapping them usually returns a number rather than an error, so it looks like it worked.

  • Leaving the operator outside the quotes

    A criterion carrying a comparison has to be quoted whole. To compare against a cell instead, join the operator to it with an ampersand.

  • Ranges of different heights

    Every criteria range has to cover the same rows as the sum range, or Excel returns #VALUE!.

Practise it

A generator gives you the formula. These give you the reason it works — and tell you which assumption broke when it does not.

Questions

What is the difference between SUMIF and SUMIFS?

SUMIF takes one condition and puts the sum range last. SUMIFS takes any number of conditions and puts the sum range first. Since SUMIFS handles a single condition perfectly well, using it everywhere saves remembering two argument orders.

How do I sum between two dates?

Use two criteria on the same date column — one for on or after the start, one for on or before the end. Compare against cells rather than typed dates and the report updates when you change them.

Can I use wildcards in the criteria?

Yes. An asterisk matches any number of characters and a question mark matches one. To match a literal asterisk, put a tilde in front of it.