The SUMIF function calculates the total of cells that meet specific conditions. These conditions can be based on dates, numbers, or text values. The function supports logical operators (<, >, =, etc.) and wildcard characters (*, ?).
The SUMIF function uses these arguments:
=SUMIF(range; criteria; [sum_range])
Range (Required):
This is the group of cells that will be checked against your criteria.
Criteria (Required):
This determines which cells to include in the sum. You can use:
- Numbers (like 10, 0.5, or 12:00)
- Text (such as « January », « North »)
- Expressions (for example, « >100 » or « <=50 »)
Sum_range (Optional):
These are the actual cells to add together. If you leave this out, Excel will sum the cells in your range instead.
HOW TO USE SUMIF FUNCTION
Let’s see how this works with two practical examples: calculating January sales using the table below;

Example 1: Calculate January Sales
- Click on an empty cell
- Type the formula:
=SUMIF(A2:A8; « Jan »; C2:C8)- A2:A8 contains month names

-
- « Jan » is our condition
-
- C2:C8 has the sales numbers

- Press Enter to see the result: 81037
Example 2: Calculate USA Sales
- Select an empty cell
- Enter the formula:
=SUMIF(B2:B8; « USA »; C2:C8)- B2:B8 lists countries

-
- « USA » is our criteria
-
- C2:C8 contains the sales figures

- Hit Enter to view the total USA sales

IMPORTANT NOTES
- If you see #VALUE!, your criteria might be too long (over 255 characters)
- When you don’t specify sum_range, Excel sums the cells in your range
- Always put text criteria in « double quotes »
- Wildcards work in SUMIF:
- matches multiple characters (e.g., « A* » finds « Apple »)
-
- ? matches one character (e.g., « J?n » finds « Jan » or « Jun »)