To sum values in Google Sheets where a corresponding cell is greater than a specific number, use the SUMIF function with the criteria ">>number" (for example, =SUMIF(A2:A10, ">100", B2:B10) sums column B values where column A is greater than 100). This works in any web browser on Google Sheets, and the same syntax applies in Microsoft Excel, though the menu paths for inserting the function differ slightly.
What SUMIF Does and When to Use It
SUMIF is a conditional sum function that adds values in a range only if they meet a single condition. It is ideal for filtering numeric data on the fly—like summing sales above a target, hours worked over a threshold, or expenses exceeding a budget line. The function takes three arguments: the range to check, the criteria (which can be a number, text, or expression), and the range to sum (optional if you want to sum the same range).
For example, if you have a list of monthly sales in column A (A2:A13) and want to total only months where sales exceeded $5,000, you would write:
=SUMIF(A2:A13, ">5000")
This sums the values in A2:A13 that are greater than 5000. If you have a separate column of quantities (B2:B13) and a price list (C2:C13), you might sum prices for items with quantity greater than 10:
=SUMIF(B2:B13, ">10", C2:C13)
Exact Syntax and How the Greater-Than Criteria Works
The criteria argument is a text string, so you must enclose the comparison operator and number in double quotes. The general form is:
=SUMIF(range, ">number", [sum_range])
Key points:
- The operator
>means strictly greater than. To include the number itself, use>=(greater than or equal to). - You can reference a cell containing the threshold:
=SUMIF(A2:A10, ">"&B1, C2:C10)where B1 holds the threshold number. The ampersand (&) concatenates the operator with the cell value. - If you omit
sum_range, SUMIF sums the cells inrangeitself. - Criteria are case-insensitive for text, but for numbers, the comparison is exact.
Example with a cell reference: Suppose you have thresholds in D1 (e.g., 100). To sum values in B2:B20 where A2:A20 is greater than D1:
=SUMIF(A2:A20, ">"&D1, B2:B20)
If A2:A20 contains 50, 150, 200, and D1 is 100, the result would be 350 (150+200).
Step-by-Step: Using SUMIF in Google Sheets
- Open your Google Sheets document in a web browser.
- Click on the cell where you want the result to appear.
- Type
=SUMIF((Google Sheets will show a function hint). - Select the range to check (e.g.,
A2:A10). - Type a comma, then enter the criteria as a string:
">100"or">="&D1. - If summing a different range, type a comma and select the sum range (e.g.,
B2:B10). - Close the parenthesis and press Enter.
On Excel for Windows (Microsoft 365), the steps are identical, but you can also use the Formulas tab > Math & Trig > SUMIF. On Excel for Mac, the function is the same; the ribbon path is Formulas > Math & Trig.
Common Mistakes and How to Avoid Them
Several errors trip up users new to SUMIF with greater-than:
- Forgetting quotes: Writing
=SUMIF(A2:A10, >100)causes a parse error. Always use">100". - Using the wrong operator:
>excludes the boundary. Use>=if you want to include it. - Mixing ranges of different sizes: The criteria range and sum range must be the same number of rows and columns, or you’ll get a #VALUE! error.
- Applying SUMIF to text: Greater-than works only with numeric values. If your range contains text, SUMIF will ignore those cells, but it’s better to use SUMIFS with a numeric criteria.
If you get a #VALUE! error, check that your ranges are aligned and that the criteria is a valid string. If you get a #NAME? error, check for a typo in the function name.
SUMIF vs. SUMIFS and FILTER
SUMIF handles a single condition. If you need to sum based on multiple criteria (e.g., greater than 100 AND less than 200), use SUMIFS:
=SUMIFS(B2:B20, A2:A20, ">100", A2:A20, "<200")
Note that SUMIFS takes the sum range first, then the criteria ranges. Another alternative is the FILTER function combined with SUM:
=SUM(FILTER(B2:B20, A2:A20>100))
FILTER is more flexible for complex conditions but is a newer function (available in Excel 2021 and Google Sheets). For a single condition, SUMIF is simpler and faster.
Real-World Examples and Use Cases
Here are three practical scenarios:
- Sales commission: Sum commissions only for sales above a quota. If sales are in B2:B100 and commission rates in C2:C100, use
=SUMIF(B2:B100, ">=5000", C2:C100). - Inventory reorder: Sum quantities of items with stock below a reorder point. If stock levels are in D2:D50, use
=SUMIF(D2:D50, "<10")to see total units needing reorder. - Budget tracking: Sum expenses that exceed a category limit. If expense amounts are in E2:E30, use
=SUMIF(E2:E30, ">1000")to find total overspending.
These examples work identically in Google Sheets and Excel, though in Excel you might prefer to use a table for structured references.
Performance and Limitations
SUMIF is efficient even on large datasets (tens of thousands of rows). However, it is not a dynamic array function; it returns a single value. If you need to sum multiple conditions across different columns, SUMIFS is better but still limited to a single sum range. For very large data, consider using QUERY in Google Sheets:
=QUERY(A1:B100, "select sum(B) where A > 100 label sum(B) ''")
QUERY uses Google Visualization API syntax and can be more powerful but has a learning curve. In Excel, you could use SUMPRODUCT for multiple criteria without array formulas:
=SUMPRODUCT((A2:A100>100)*(B2:B100))
This multiplies the condition (returns 1/0) by the sum range, effectively summing only where true.
Frequently Asked Questions
Can I use SUMIF with a cell reference for the threshold? Yes, use the ampersand to concatenate: =SUMIF(A2:A10, ">"&B1, C2:C10). This is common for dynamic thresholds.
How do I sum if greater than a date? Dates are stored as numbers, so you can use =SUMIF(A2:A10, ">"&DATE(2025,1,1), B2:B10) or reference a cell containing a date. Ensure the date is formatted as a date.
Why is my SUMIF returning 0? Check that your criteria is correct, the range contains numbers (not text), and the sum range is aligned. Also, verify that the operator is not reversed (e.g., you used < instead of >).
Does SUMIF work with text greater than? No, greater-than comparisons are only meaningful for numbers. For text, use wildcards like * to match patterns.
Can I use SUMIF with a whole column reference? Yes, like =SUMIF(A:A, ">100", B:B), but this may slow down if the column has many empty cells. It's fine for moderate data.
What is the difference between SUMIF and SUMIFS in terms of order? SUMIF is (range, criteria, sum_range) while SUMIFS is (sum_range, criteria_range1, criteria1, ...). This is a common source of errors when switching between them.
Related
- Random Number Generator: How to Get One
- Freelance Data Entry: Real Work or Scam?
- Balance Exercises Print Out: Free PDF Routines
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Shortcut for Arrow? Best Ways to Type →The fastest shortcut for typing an arrow symbol (→) on Windows is Alt + 26 (using the numeric…
- How to Auto Forward Emails in OutlookTo auto forward every new message in Outlook, open Settings, go to Mail > Forwarding, turn on forwarding,…
- How to Loop a PowerPoint SlideshowTo loop a PowerPoint slideshow in Microsoft 365 for Windows, open the presentation and select Slide Show >…
- How to Open Version History in ExcelTo open version history in Excel for Microsoft 365 on Windows, open the workbook saved in OneDrive or…
- Seated and Standing Balance Grades ExplainedSeated and standing balance grades are standardized 0-to-4 ordinal scales used by physical therapists and occupational therapists to…
- How to Convert Exponential to Number in Excel: A GuideTo show an Excel value written in scientific notation as an ordinary number, select the cells and choose…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.