Only sum if value is within a range

rfinnegan

Board Regular
Joined
Mar 15, 2005
Messages
173
Office Version
  1. 365
Platform
  1. Windows
Hello All:

I'm trying to sum the values in cells C7:AG69 if they are between -$499 and +$499. I've tried several SUMIF formulas and I can't seem to get it to work.

I think this should be simple, but I just can't figure it out....which I guess is a way of saying I'm an idiot.

Thanks in advance.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
try something like this

=SUMIFS(C7:AG69,C7:AG69,">=-499",C7:AG69,"<499")
:)
 
Last edited:
Upvote 0
If you are using XL2007 or later, check out the SUMIFS function. It allows you to enter multiple criteria for your range.

If not, I'm sure there's a better way, but this is the first one I thought of to try:

=SUMIF(C7:AG69,">= -499")- SUMIF(C7:AG69, ">499")
 
Upvote 0
Hello All:

I'm trying to sum the values in cells C7:AG69 if they are between -$499 and +$499. I've tried several SUMIF formulas and I can't seem to get it to work.

I think this should be simple, but I just can't figure it out....which I guess is a way of saying I'm an idiot.

Thanks in advance.

Control+shift+enter, not just enter:

=SUM(IF(ABS(C7:AG69)<=499,C7:AG69))
 
Upvote 0
Hello All:

I'm trying to sum the values in cells C7:AG69 if they are between -$499 and +$499. I've tried several SUMIF formulas and I can't seem to get it to work.

I think this should be simple, but I just can't figure it out....which I guess is a way of saying I'm an idiot.

Thanks in advance.
Try this array formula**:

=SUM(IF(C7:AG69>=-499,IF(C7:AG69<=499,C7:AG69)))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0
Thanks to all, I'm getting the results I expected now.

I should have mentioned I'm using Excel 2003...
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

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