ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Conditional math
  3. SUMIF Greater Than or Less Than a Number

SUMIF Greater Than or Less Than a Number

By ExcelReady Team·Updated November 1, 2026·6 min read

The short answer

To add values greater than a number, put the operator and the number in quotes: =SUMIF(B2:B8,">500"). With two arguments, SUMIF adds the same cells it checks. To check one column and add another, give a third argument: =SUMIF(C2:C8,">=10",B2:B8). Use "<", ">=" or "<=" for the other comparisons, and ">"&E1 for a limit in a cell.

Key takeaways

  • The criteria is the operator and the number together in quotes: ">500".
  • With two arguments, SUMIF adds the cells it checks; add a sum range to check one column and add another.
  • leaves out the limit itself; >= includes it.

  • Join a cell to the operator with &: ">"&E1, never ">E1".
  • For a range such as 300 to 900, use SUMIFS with two conditions.
On this page+
  1. How to sum values greater than a number
  2. SUMIF less than, greater than or equal to, and more
  3. How to use SUMIF greater than a cell value
  4. How to check one column and add another
  5. How to sum between two numbers
  6. Greater than with dates or the average
  7. Why SUMIF greater than returns 0 or the wrong total
  8. SUMIF greater than with a second condition
  9. Practise it

To use SUMIF greater than a number, put the operator and the number together in double quotes: =SUMIF(B2:B8,">500") adds every value above 500. Swap the operator for less than, greater than or equal to, or less than or equal to. This guide shows each comparison on one order list, then covers limits in cells, conditions on a different column, ranges and the reasons a total comes out as 0.

How to sum values greater than a number#

SUMIF adds the numbers that meet one condition, called the criteria. Its syntax is:

Excel formula
=SUMIF(range, criteria, [sum_range])

The square brackets mean sum_range is optional. When you leave it out, SUMIF adds the same cells it checks. Every example uses this order list in A1:C8:

ABC
1OrderAmountUnits
210012505
3100282012
410035008
51004120020
61005902
710066409
810073756

To add the orders above 500:

  1. Click an empty cell, such as E2.
  2. Type =SUMIF(B2:B8,">500").
  3. Press Enter.

The result is 2660: 820 + 1200 + 640. Order 1003 is exactly 500, so it is left out. The quotes are required: without them, Excel won't accept the formula. For a full introduction, see how to use SUMIF.

SUMIF less than, greater than or equal to, and more#

Change the operator to change the comparison. On the Amount column, which totals 3875:

QuestionFormulaResult
Greater than 500=SUMIF(B2:B8,">500")2660
Greater than or equal to 500=SUMIF(B2:B8,">=500")3160
Less than 500=SUMIF(B2:B8,"<500")715
Less than or equal to 500=SUMIF(B2:B8,"<=500")1215
Not equal to 500=SUMIF(B2:B8,"<>500")3375

The difference between > and >= is the 500 order, which is why the second total is 500 higher. A quick check: "greater than 500" plus "less than or equal to 500" should equal the full total, and 2660 + 1215 = 3875.

Write the operators exactly like this. => and =< are not valid, and neither is !=. For more on leaving a value out, see SUMIF not equal to.

How to use SUMIF greater than a cell value#

Put the limit in a cell so you can change it without editing the formula. With 500 in E1:

Excel formula
=SUMIF(B2:B8,">"&E1)

The result is 2660. The & joins the text ">" to the value in E1, so Excel sees ">500". Change E1 to 1000 and the total becomes 1200.

The common mistake is ">E1". Inside quotes, E1 is just text, so SUMIF looks for amounts greater than the word "E1" and returns 0. The operator goes in quotes, the cell reference stays outside.

How to check one column and add another#

Use the third argument when the condition is on one column but the numbers to add are in another. To total the Amount for orders with 10 or more units:

Excel formula
=SUMIF(C2:C8,">=10",B2:B8)

SUMIF checks the Units column, finds orders 1002 (12 units) and 1004 (20 units), and adds their amounts from column B: 820 + 1200 = 2020. Order 1006 has 9 units, so it is left out even though its amount is large.

Make sure the two ranges are the same size and start on the same row. If the sum range is shifted by a row, SUMIF adds the wrong numbers without any warning.

How to sum between two numbers#

SUMIF takes one condition, so for a range such as 300 to 900 use SUMIFS with two conditions on the same column:

Excel formula
=SUMIFS(B2:B8,B2:B8,">=300",B2:B8,"<=900")

The result is 2335: 820 + 500 + 640 + 375. A value is added only when it passes both tests. SUMIFS puts the sum range first, which is the opposite of SUMIF. The comparison of SUMIF vs SUMIFS explains why.

You can also subtract two SUMIFs: =SUMIF(B2:B8,">=300")-SUMIF(B2:B8,">900") gives 3535 - 1200 = 2335. SUMIFS is easier to read, so prefer it.

Greater than with dates or the average#

The criteria can include a function, joined with &. To add the amounts above the average order:

Excel formula
=SUMIF(B2:B8,">"&AVERAGE(B2:B8))

The average is about 553.6, so this adds 820, 1200 and 640 for 2660. Dates are numbers too, so ">="&DATE(2024,7,1) adds the rows from 1 July 2024 onwards when it is used on a date column with a sum range. Build dates with DATE rather than typing them as text, because text dates depend on regional settings.

Why SUMIF greater than returns 0 or the wrong total#

Check these causes in order:

  1. Numbers stored as text. Imported numbers are sometimes text, and SUMIF skips them. Real numbers sit on the right of the cell by default. Convert them with VALUE or Data > Text to Columns.
  2. A cell reference inside the quotes. Use ">"&E1.
  3. Wrong operator order. Use ">=", not "=>".
  4. Missing sum range. If the condition is on Units but you want Amounts added, you need the third argument.
  5. Misaligned ranges. The check range and sum range must line up row for row.

To count the matching rows rather than add them, use the same criteria in COUNTIF; the guide to COUNTIF greater than shows how. To add rows by a word inside the text, see SUMIF contains text.

SUMIF greater than with a second condition#

SUMIF takes one condition. To add a second one, switch to SUMIFS. To total the amounts over 500 for orders of fewer than 15 units:

Excel formula
=SUMIFS(B2:B8,B2:B8,">500",C2:C8,"<15")

The result is 1460: order 1002 (820, 12 units) and order 1006 (640, 9 units). Order 1004 is over 500 but has 20 units, so it is left out. Each extra condition is one more range and criteria pair.

Practise it#

Greater-than totals are among the most common SUMIF tasks in job tests. Practise SUMIF in a live spreadsheet: you type the criteria and the lesson checks it instantly. Keep the SUMIF function guide open as a reference, and try the exercise on this page first if you want a quick warm-up.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

In E2, use SUMIF to total the order Amounts in B2:B8 that are greater than 500.

fx
ABCDEF
1
Order
Amount
Units
2
1001
250
5
Over 500
3
1002
820
12
4
1003
500
8
5
1004
1200
20
6
1005
90
2
7
1006
640
9
8
1007
375
6
9
10
11

Tip: Put the operator and the number together in quotes: ">500". You only need two arguments here.

Practise this in a lesson

LessonSUMIFAdd up only the numbers that meet a condition, with and without a separate sum range.Function guideSUMIFAdd up values that meet one condition with SUMIF. Totals by category, person or amount, the argument-order trap, and a live exercise.

Frequently asked questions

How do I sum values greater than a number in Excel?

+

Use SUMIF with the operator and number in quotes: =SUMIF(B2:B8,">500"). It adds every value in B2:B8 that is above 500.

How do I use SUMIF greater than a cell value?

+

Keep the operator in quotes and join the cell with an ampersand: =SUMIF(B2:B8,">"&E1). Writing ">E1" doesn't work, because inside quotes E1 is just text.

How do I sum one column based on another column being greater than a value?

+

Add the sum range as the third argument: =SUMIF(C2:C8,">=10",B2:B8). SUMIF checks the units in column C and adds the amounts from column B for the matching rows.

How do I sum values between two numbers?

+

Use SUMIFS with two conditions on the same range: =SUMIFS(B2:B8,B2:B8,">=300",B2:B8,"<=900"). A value is added only when it passes both tests.

Why does SUMIF greater than return 0?

+

Usually the numbers are stored as text, the operator is in the wrong order such as =>, or a cell reference is inside the quotes. Real numbers sit on the right of the cell by default.

Sources

  • SUMIF function - Microsoft Support
  • SUMIFS function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 1, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. How to sum values greater than a number
  2. SUMIF less than, greater than or equal to, and more
  3. How to use SUMIF greater than a cell value
  4. How to check one column and add another
  5. How to sum between two numbers
  6. Greater than with dates or the average
  7. Why SUMIF greater than returns 0 or the wrong total
  8. SUMIF greater than with a second condition
  9. Practise it

Keep reading

Conditional math· 7 min read

How to Use SUMIF in Excel

SUMIF adds up the numbers in the rows that meet one condition. Write =SUMIF(range, criteria, sum_range): the cells to check, what they must match, then the numbers to add. For example, =SUMIF(C2:C9,"Travel",D2:D9) totals all Travel claims. Leave out sum_range when the condition is about the numbers themselves.

Conditional math· 6 min read

SUMIF Contains Text: Sum by Partial Match

To add up rows whose text contains a word, wrap the word in asterisks: =SUMIF(A2:A8,"*hotel*",B2:B8). The * wildcard means any characters, so the formula adds "Hotel London" and "Hotel Paris". Use "*"&D1&"*" for a word in a cell, "<>*hotel*" to exclude it, and SUMIFS when the text must contain two words.

Conditional math· 6 min read

SUMIF Not Equal To: Exclude a Value From a Total

To sum everything except one value, use the not-equal-to operator <> inside quotes: =SUMIF(A2:A8,"<>North",C2:C8) adds the sales of every region except North. For a value in a cell, write "<>"&E1. To exclude two or more values, use SUMIFS with one "<>" condition for each value.

More on conditional math

  • SUMIFS With OR Logic in Excel
  • Excel Wildcards: *, ? and ~ in COUNTIF and SUMIF
  • AVERAGEIF and AVERAGEIFS in Excel
  • AVERAGEIFS in Excel: Averages With Several Conditions
  • How to Count Cells With Text in Excel
  • How to Count Duplicates in Excel
All conditional math articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free