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. SUMIFS Between Two Numbers: Sum Values in a Range

SUMIFS Between Two Numbers: Sum Values in a Range

By ExcelReady Team·Updated November 2, 2026·7 min read

The short answer

To sum values between two numbers, give SUMIFS the same column twice, once with a lower limit and once with an upper limit: =SUMIFS(D2:D8,C2:C8,">=5",C2:C8,"<=10"). SUMIFS adds a row only when both conditions are true. Use >= and <= to include the limits, or > and < to leave them out.

Key takeaways

  • Repeat the criteria range: one pair for the lower limit, one pair for the upper limit.
  • = and <= include the limits; > and < exclude them. Say which one your report uses.

  • For limits in cells, join the operator and the cell with &: ">="&G1.
  • One criteria string can't hold both limits: ">=5<=10" doesn't work.
  • For bands, use >= the lower limit and < the next band's start so no value is counted twice.
On this page+
  1. Why SUMIF can't sum between two numbers
  2. How to sum between two numbers with SUMIFS
  3. Including or excluding the limits
  4. How to put the limits in cells
  5. Between two numbers plus another condition
  6. How to sum values in bands
  7. Other ways to sum between two numbers
  8. Common mistakes with SUMIFS between two numbers
  9. Practise it

To use SUMIFS between two numbers, you check the same column twice: once for the lower limit and once for the upper limit. =SUMIFS(D2:D8,C2:C8,">=5",C2:C8,"<=10") adds the revenue of every order with 5 to 10 units. This guide shows the formula step by step, how to include or exclude the limits, how to keep the limits in cells, and how to build bands for a summary table.

Why SUMIF can't sum between two numbers#

SUMIF takes one condition, and "between" is really two: at least the lower limit, and at most the upper limit. You can't squeeze both into one criteria string. ">=5<=10" is not a valid condition, so Excel compares against that exact text and returns 0.

SUMIFS takes as many conditions as you need, and a row is added only when all of them are true. That's exactly what "between" means.

All the examples use this order list in A1:D8:

ABCD
1OrderRegionUnitsRevenue
2O-101North3360
3O-102South8960
4O-103North121,440
5O-104East5600
6O-105South101,200
7O-106North7840
8O-107East141,680

How to sum between two numbers with SUMIFS#

Put the column to add first, then the column to check twice, with a different limit each time:

Excel formula
=SUMIFS(D2:D8,C2:C8,">=5",C2:C8,"<=10")
PartWhat it does
D2:D8The revenue to add up
C2:C8,">=5"Keep rows where units are 5 or more
C2:C8,"<=10"Keep rows where units are 10 or fewer

Orders O-102 (8), O-104 (5), O-105 (10) and O-106 (7) pass both tests. The result is 3,600 (960 + 600 + 1,200 + 840).

The operator goes inside the quotes, touching the number. The SUMIFS function guide lists every argument, and the guide to COUNTIFS and SUMIFS with multiple conditions covers other combinations.

Sum the numbers themselves#

If you want to add the values you're checking, use the same column as the sum range:

Excel formula
=SUMIFS(C2:C8,C2:C8,">=5",C2:C8,"<=10")

This adds the units from 5 to 10: 8 + 5 + 10 + 7 = 30.

Including or excluding the limits#

"Between" can mean two things, so choose the operators on purpose:

You wantCriteriaRows addedResult
5 to 10, including both">=5", "<=10"8, 5, 10, 73,600
More than 5 and less than 10">5", "<10"8, 71,800
5 or more, under 10">=5", "<10"8, 5, 72,400

The difference is only the rows sitting exactly on a limit, but in a test that changes the answer. If the question says "from 5 to 10", include both ends.

How to put the limits in cells#

Keep the limits in cells when you want to change them without editing the formula. If G1 holds 5 and G2 holds 10:

Excel formula
=SUMIFS(D2:D8,C2:C8,">="&G1,C2:C8,"<="&G2)

The & joins the operator text to the number in the cell, building ">=5" and "<=10". The result is again 3,600. Don't write ">=G1": inside the quotes, G1 is just two letters, and the formula returns 0.

This joining rule is the same one used for text and wildcard criteria, which you can practise in the criteria and wildcards lesson. Wildcards like * only work on text, though. For numbers, "between" always needs two comparisons.

Between two numbers plus another condition#

Add more pairs to narrow it down. To total North orders with 5 to 10 units:

Excel formula
=SUMIFS(D2:D8,B2:B8,"North",C2:C8,">=5",C2:C8,"<=10")

Only O-106 (North, 7 units) passes all three tests, so the result is 840. North's 3-unit and 12-unit orders fall outside the range.

The order of the pairs doesn't matter. What matters is that every criteria range is the same size as the sum range, or SUMIFS returns #VALUE!.

How to sum values in bands#

A band table splits all the values into ranges, such as small, medium and large orders. Put the lower limits in one column and the upper limits in the next. With the lower limit in G5 and the upper in H5:

Excel formula
=SUMIFS($D$2:$D$8,$C$2:$C$8,">="&G5,$C$2:$C$8,"<="&H5)

Fill it down for each band:

FromToRevenue
14360
592,400
10144,320
Total7,080

The bands add up to the full total, 7,080, which proves no order was missed or counted twice. For values with decimals, such as 9.5, whole-number bands leave gaps. Use ">="&G5 with "<"&G6 (the next band's start) instead, so every value lands in exactly one band. The guide to COUNTIF between two numbers builds the same bands with counts.

Other ways to sum between two numbers#

SUMIFS is the clearest option, but you'll see two others in older files:

Subtracting two SUMIFs. Add everything up to 10, then take away everything below 5:

Excel formula
=SUMIF(C2:C8,"<=10",D2:D8)-SUMIF(C2:C8,"<5",D2:D8)

That's 3,960 − 360 = 3,600. It works in any Excel version but is harder to read.

SUMPRODUCT. Each comparison returns TRUE or FALSE, and multiplying them keeps only rows where both are TRUE:

Excel formula
=SUMPRODUCT((C2:C8>=5)*(C2:C8<=10)*D2:D8)

This also returns 3,600. It's useful when you need a calculation SUMIFS can't do inside the condition.

To sum values outside a range, such as under 5 or over 10, add two SUMIFS: =SUMIFS(D2:D8,C2:C8,"<5")+SUMIFS(D2:D8,C2:C8,">10") returns 3,480. The guide to SUMIFS with OR logic explains this pattern. For dates, the method is the same, because dates are numbers: see summing between two dates.

Common mistakes with SUMIFS between two numbers#

These slips cause most zero or wrong totals:

  1. Both limits in one string. ">=5<=10" returns 0. Use two pairs.
  2. Limits the wrong way round. ">=10" with "<=5" can never both be true, so the result is 0.
  3. A cell reference inside the quotes. Write ">="&G1, not ">=G1".
  4. Numbers stored as text. Imported units that are text don't pass ">=5". Convert them with VALUE.
  5. Overlapping bands. Bands like 1–5 and 5–10 count 5 twice. Check that the bands add up to the total.

Practise it#

Two-limit SUMIFS is a classic Excel test question. Practise COUNTIFS and SUMIFS in a live spreadsheet: you build multi-condition totals and the sheet checks each formula instantly. Then sharpen your criteria with operators, cells and wildcards in the criteria and wildcards lesson.

Try it yourself

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

Total the Revenue of orders with 5 to 10 units, including 5 and 10. Click G2 and use SUMIFS with the Units column (C2:C8) twice.

fx
ABCDEFGH
1
Order
Region
Units
Revenue
2
O-101
North
3
360
3
O-102
South
8
960
4
O-103
North
12
1440
5
O-104
East
5
600
6
O-105
South
10
1200
7
O-106
North
7
840
8
O-107
East
14
1680
9
10
11

Tip: Sum range D2:D8 first, then C2:C8 with ">=5", then C2:C8 again with "<=10".

Practise this in a lesson

LessonCOUNTIFS and SUMIFSCount and sum with several conditions at once, and learn why SUMIFS puts the sum range first.LessonWildcards and cell-based criteriaMatch partial text with * and ?, and build criteria from cells like ">"&H5 so your formulas adapt.Function guideSUMIFSTotal values that meet several conditions with SUMIFS. Examples by region, month and number range, common errors, and live practice.

Frequently asked questions

How do I sum values between two numbers in Excel?

+

Use SUMIFS with the same range twice: =SUMIFS(D2:D8,C2:C8,">=5",C2:C8,"<=10"). It adds the values in D where C is from 5 to 10.

Can SUMIF sum between two numbers?

+

Not in one condition, because SUMIF takes only one. You can subtract two SUMIFs: =SUMIF(C2:C8,"<=10",D2:D8)-SUMIF(C2:C8,"<5",D2:D8). SUMIFS is clearer.

How do I use cell references for the limits in SUMIFS?

+

Keep the operator in quotes and join the cell with &: =SUMIFS(D2:D8,C2:C8,">="&G1,C2:C8,"<="&G2). Writing ">=G1" compares against the text G1 and returns 0.

Is between in SUMIFS inclusive?

+

It's whatever you write. ">=5" and "<=10" include 5 and 10. ">5" and "<10" leave them out. Pick one and label the report so readers know.

Why does my SUMIFS between two numbers return 0?

+

Common causes are both limits in one string, the limits in the wrong order, a cell reference inside the quotes, or numbers stored as text in the criteria column.

Sources

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

Written and checked by the ExcelReady Team. First published November 2, 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. Why SUMIF can't sum between two numbers
  2. How to sum between two numbers with SUMIFS
  3. Including or excluding the limits
  4. How to put the limits in cells
  5. Between two numbers plus another condition
  6. How to sum values in bands
  7. Other ways to sum between two numbers
  8. Common mistakes with SUMIFS between two numbers
  9. Practise it

Keep reading

Conditional math· 6 min read

COUNTIF Between Two Numbers in Excel

To count values between two numbers, use COUNTIFS with two conditions on the same range: =COUNTIFS(B2:B8,">=30",B2:B8,"<=45"). A cell is counted only when it meets both, so this counts values from 30 to 45, including both limits. Use ">" and "<" instead to leave the limits out. In very old Excel, subtract two COUNTIFs.

Conditional math· 7 min read

Sum by Date Range or Month in Excel With SUMIFS

To sum between two dates, give SUMIFS the same date column twice: once with ">="&start and once with "<"&end. For January 2025, write =SUMIFS(D2:D9,A2:A9,">="&DATE(2025,1,1),A2:A9,"<"&DATE(2025,2,1)). Keep the operator in quotes and join the date with &. Using "before the 1st of next month" works for every month.

Conditional math· 7 min read

COUNTIFS and SUMIFS: Multiple Conditions in Excel

COUNTIFS counts rows that meet several conditions, and SUMIFS adds numbers from those rows. Each condition is a pair: a range, then its criteria. A row counts only if it matches every pair. SUMIFS puts the sum range first: =SUMIFS(E2:E9,A2:A9,"North",C2:C9,"Laptop") totals North laptop revenue.

More on conditional math

  • SUMIFS: Ignore Blank Criteria and Show All When Empty
  • SUMIFS Not Equal To: Exclude Values From a Total
  • SUMIFS With OR Logic in Excel
  • Excel Wildcards: *, ? and ~ in COUNTIF and SUMIF
  • How to Calculate an Average by Group in Excel
  • AVERAGEIF and AVERAGEIFS 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