The direct answer: in Excel, SUMIF cannot directly use a “bigger than” comparison as its only argument — you must combine it with a comparison operator inside the criteria, like =SUMIF(B2:B10,">5",C2:C10) to sum values in C where B is greater than 5. This works for numbers, dates, and even text with wildcards, but the syntax requires the operator to be enclosed in quotes, and you can use a cell reference with concatenation for dynamic thresholds.
How SUMIF Works with Comparison Operators
The SUMIF function has three arguments: range (the cells to check), criteria (the condition), and sum_range (the cells to add). The criteria can include operators like >, <, >=, <=, and <> (not equal). The operator must be in double quotes, and the number can be inside or outside the quotes, but the whole criteria must be a text string. For example, to sum sales where quantity is greater than 10, with quantities in A2:A10 and sales in B2:B10, use =SUMIF(A2:A10,">10",B2:B10). This returns the sum of all B values where the corresponding A is greater than 10.
If you want to use a cell reference for the threshold, say cell D1 contains 10, you must concatenate: =SUMIF(A2:A10,">"&D1,B2:B10). The ampersand (&) joins the operator with the cell value, and Excel treats the result as a text criteria. This is a common point of confusion because writing ">D1" would literally compare to the text “D1” (which yields zero), not the value in D1.
Using SUMIF with Dates and Text
For dates, you can use a date serial number or a date function. For example, to sum amounts in B2:B10 where dates in A2:A10 are after January 1, 2024, use =SUMIF(A2:A10,">"&DATE(2024,1,1),B2:B10). The DATE function returns a serial number that Excel understands. Alternatively, you can put the date in a cell and reference it: =SUMIF(A2:A10,">"&E1,B2:B10) where E1 contains a real date. If you type the date directly in the formula without quotes, Excel may misinterpret it as a division operation, so always use DATE or a cell reference.
For text, “greater than” is less common, but you can use it to sum cells where text is alphabetically after a certain letter. For example, =SUMIF(A2:A10,">m",B2:B10) sums B for all A values that start with a letter after “m” (like “n”, “o”, etc.). This is case-insensitive and based on the ASCII sort order, so “apple” is less than “banana” because “a” < “b”.
SUMIFS for Multiple Conditions Including “Bigger Than”
When you need more than one condition, use SUMIFS. The syntax is =SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...). For example, to sum sales in C2:C10 where quantity in A2:A10 is greater than 5 AND region in B2:B10 is “West”, use =SUMIFS(C2:C10,A2:A10,">5",B2:B10,"West"). Notice that in SUMIFS, the sum_range comes first. You can mix operators freely, like ">5" and "<10" for a range, or use wildcards for text.
One key difference: SUMIF and SUMIFS ignore cells in the sum_range that contain text or blanks, but they do not ignore errors. If any cell in the sum range has an error, the formula returns an error. To avoid this, you can use IFERROR inside an array formula, but that is advanced. For most cases, ensure your data is clean.
Common Mistakes and How to Fix Them
The most frequent error is forgetting the quotes around the operator. Writing =SUMIF(A2:A10,>5,B2:B10) gives a syntax error. Always use ">5". Another mistake is using a cell reference without concatenation: ">D1" compares to the text “D1”, not the value. Fix it with ">"&D1. A third issue is using SUMIF with an entire column (e.g., A:A) which is slower but works; however, if you have headers, it may sum unintended cells. It’s safer to use a defined range like A2:A1000.
Also, note that SUMIF is not case-sensitive. If you need case-sensitive sum, you must use SUMPRODUCT with EXACT, but that is rarely needed. For numeric thresholds, be careful with decimal separators; in some locales, you need a comma or semicolon depending on your system settings, but the formula syntax always uses commas in the English version.
Alternatives: SUMPRODUCT and FILTER
If you need more flexibility, SUMPRODUCT can sum with multiple conditions without array entry. For example, =SUMPRODUCT((A2:A10>5)*(B2:B10="West")*C2:C10) sums C where A>5 and B=“West”. This works because TRUE*TRUE=1, and multiplying by the sum range adds only matching values. However, SUMPRODUCT is slower on large datasets because it evaluates all cells.
In Excel 365, you can use the FILTER function: =SUM(FILTER(C2:C10,(A2:A10>5)*(B2:B10="West"))). This is more readable and dynamic, but FILTER requires Microsoft 365 or Excel 2021. It returns an array that SUM adds up. This is often easier to debug because you can see the filtered values.
Practical Examples with Real Data
Suppose you have a sales table with columns: A = Order Date, B = Quantity, C = Revenue. You want total revenue for orders with quantity greater than 20. With data in rows 2 to 100, the formula is =SUMIF(B2:B100,">20",C2:C100). If you put the threshold 20 in cell E1, use =SUMIF(B2:B100,">"&E1,C2:C100). For a date example, to sum revenue for orders after March 1, 2024, use =SUMIF(A2:A100,">"&DATE(2024,3,1),C2:C100). These return a single number.
For a more complex scenario, sum revenue for quantity > 20 AND region = “East” (region in D column): =SUMIFS(C2:C100,B2:B100,">20",D2:D100,"East"). This is straightforward and avoids array formulas.
Frequently Asked Questions
Can I use “bigger than or equal to” in SUMIF? Yes, use ">=" like =SUMIF(A2:A10,">=5",B2:B10). The operator must be in quotes.
Why does my SUMIF return 0 when I use a cell reference? Because you likely wrote ">D1" instead of ">"&D1. The quotes make it text, so no numeric comparison happens. Use the ampersand.
Can I use SUMIF with “not equal to” for text? Yes, use "<>"&"text" or "<>text". For example, =SUMIF(A2:A10,"<>Pending",B2:B10) sums B for all A that are not “Pending”.
Does SUMIF work with whole columns? Yes, like =SUMIF(A:A,">5",B:B), but it may be slower and can include header text if you have headers. It’s better to limit the range.
What if my numbers are stored as text? SUMIF may ignore them. Convert text to numbers using the VALUE function or Text to Columns. You can test with =ISNUMBER(A2).
Is there a difference between SUMIF and SUMIFS for one condition? No, both work, but SUMIFS has a different argument order (sum_range first). Use whichever you find clearer.
Related
- Short Cut for Print? Fastest Ways to Print in Windows & Mac
- How to Change View Settings in Windows 11
- Entry Level Coding Languages: 7 Best Picks for 2024
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Formulas & functions
- VLOOKUP Format: Syntax, Examples & How to Use ItThe basic format for VLOOKUP in Excel is =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). For example, =VLOOKUP("A-100", A2:C10, 2, FALSE)…
- Excel Formula for Adding Hours on a Timesheet CorrectlyTo add timesheet hours in Excel, use =SUM(B2:B8) when the daily durations are in cells B2 through B8.…
- Excel COUNTIF Contains Partial Text: 3 WaysTo count cells that contain part of text in Excel, use =COUNTIF(range,"*text*") — the asterisks are wildcards that…
- Excel Formula for Checking Account RegisterThe core formula for a checking account register in Excel is a running balance: =SUM($C$2:C2) (or =C2 for…
- Excel Midpoint of Dates: Formula and ExamplesTo find the midpoint between two dates in Excel, put the earlier date in A2 and the later…
- How to Find IQR in Excel With QUARTILE FunctionsTo find the interquartile range (IQR) in Excel, subtract the first quartile from the third quartile: use =QUARTILE.INC(A2:A9,3)-QUARTILE.INC(A2:A9,1)…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.