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,
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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 ?
 
Upvote 0
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)
 
Upvote 0
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))
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

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