Cellgrids Cellgridsby LearnWithRinkesh
Home › Excel tutorials › How to Use SUMIF in Excel (With Examples)

How to Use the SUMIF Function in Excel (With Examples)

By Rinkesh Shah · Business Analyst, 8 years in data · Updated 2026-10-30

▶ Video coming soon

SUMIF adds up the numbers that meet one condition, for example the total sales of one region.

Syntax

=SUMIF(range, criteria, [sum_range])

Example with text

Regions are in A2:A100 and sales in C2:C100:

=SUMIF(A2:A100, "North", C2:C100)

Example with numbers

To add only values above 500: =SUMIF(C2:C100, ">500").

Using a cell as the condition

=SUMIF(A2:A100, F1, C2:C100) uses whatever is typed in F1. For "greater than" with a cell, write ">"&F1.

Partial text with wildcards

=SUMIF(B2:B100, "*Pro*", C2:C100) adds every row where the product name contains Pro.

Common mistakes

Need more than one condition? Use SUMIFS.

Frequently asked questions

What is the SUMIF formula in Excel?

SUMIF adds the numbers in a range that meet one condition. The syntax is SUMIF(range, criteria, [sum_range]).

What is the difference between SUMIF and SUMIFS?

SUMIF handles one condition. SUMIFS handles many conditions at once, and its sum range comes first.

Can SUMIF use wildcards?

Yes. Use * for any number of characters and ? for a single character, for example =SUMIF(A:A,"North*",B:B).

Practice this online, free

Reading is only half of learning Excel. Cellgrids is a free place for online Excel practice: solve Excel formula exercises in a live spreadsheet, prepare for Excel interview questions, and work through business case studies built for data analytics and business analytics roles.

Practice these formulas: SUMIF, SUMIFS, SUM.

Start Excel practice → Case studies