Looking for a more efficient formula using a criteria range in an SUMIF Formula

ddillistin

New Member
Joined
May 3, 2019
Messages
2
In a SUMIF or SUMIFS formula, I'm looking for he most efficient way to enter a value range in place of the 8000 to 8002, I actually need go up to 8099. My worksheet is dynamic so the cell locations containing the 8000 series #'s will vary each week.

=SUMIF(E4:E100,8000,Q4:Q100)+SUMIF(E4:E100,8001,Q4:Q100)+SUMIF(E4:E100,8002,Q4:Q100)

Thank You,
 

Some videos you may like

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Tetra201

MrExcel MVP
Joined
Oct 14, 2016
Messages
3,631
Is this what you need?

=SUMIFS(Q4:Q100,E4:E100,">=8000",E4:E100,"<=8099")
 

ddillistin

New Member
Joined
May 3, 2019
Messages
2
In a SUMIF or SUMIFS formula, I'm looking for he most efficient way to enter a value range in place of the 8000 to 8002, I actually need go up to 8099. My worksheet is dynamic so the cell locations containing the 8000 series #'s will vary each week.

=SUMIF(E4:E100,8000,Q4:Q100)+SUMIF(E4:E100,8001,Q4:Q100)+SUMIF(E4:E100,8002,Q4:Q100)

Thank You,


Tetra102, Thank You for your reply.
The result of the formula in your reply was #NAME ?
 

RicoS

New Member
Joined
May 1, 2019
Messages
33
That formula works for me. Are your 8000 series values formated as text as opposed to number? If so you could use:

=SUMIF($E$4:$E$100,"80*",$Q$4:$Q$100)
 

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
10,624
You might have an older version of Excel. SUMIFS was introduced in 2007. If your numbers are saved as text, then RicoS's formula should work. If they are saved as numbers, try:

=SUMPRODUCT(Q4:Q100,--(E4:E100>=8000),--(E4:E100<=8099))
 

Tetra201

MrExcel MVP
Joined
Oct 14, 2016
Messages
3,631
... The result of the formula in your reply was #NAME...
Looks like your version of Excel doesn't have the SUMIFS function. In this case, try the following workaround:

=SUMPRODUCT(Q4:Q100,--(E4:E100>=8000),--(E4:E100<=8099))
 

Watch MrExcel Video

Forum statistics

Threads
1,122,737
Messages
5,597,824
Members
414,180
Latest member
Sir Khaya

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
Top