How to calculate SUMIF with value between?

Peter888

New Member
Joined
Aug 15, 2017
Messages
16
Hi i would like to know how to use SUMIF formula with between values in it. For example i have citizen age database, i want to calculate number of citizen aged between 10 and 17. What formula should i use to get 7 Person as result ? Please let me know the solution. Thank you !


excel question.png
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Book1
ABCD
1
21547
3243
4212
5163
685
Sheet1
Cell Formulas
RangeFormula
D2D2=SUMIFS(B2:B6,A2:A6,">="&10,A2:A6,"<="&17)
 
Upvote 0
Solution
Hi, use below formula

Excel Formula:
=SUMIFS($B$2:$B$6,$A$2:$A$6,">=10",$A$2:$A$6,"<=17")


SUMIF.xlsx
ABCDE
1AgeNo of Citizen
2154
3243No of Citizen7
4212
5163
685
7
8
9
Sheet1
Cell Formulas
RangeFormula
E3E3=SUMIFS($B$2:$B$6,$A$2:$A$6,">=10",$A$2:$A$6,"<=17")
 
Upvote 0
Hi Peter888,

You'll need to use SUMIFS as there are two conditions: Greater than or equal to 10 and less than or equal to 17.

Peter888.xlsx
ABCD
1AgeNumber of CitizensResult
21547
3243
4212
5163
685
Sheet1
Cell Formulas
RangeFormula
D2D2=SUMIFS(B2:B6,A2:A6,">="&10,A2:A6,"<="&17)
 
Upvote 0

Forum statistics

Threads
1,214,589
Messages
6,120,415
Members
448,960
Latest member
AKSMITH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top