Sumif and ignore negative numbers...

springerwa

New Member
Joined
Jun 26, 2009
Messages
3
I have tried a few options that I have found on the boards but I have not been successful...

My existing formula is working but I have now realized that there is sometimes negative numbers in the S - X columns and I need to ignore them.

My existing formula:
=SUMIF('Sales Orders Summary'!$D$5:$D$117,$A10,'Sales Orders Summary'!$S$5:$S$117)+SUMIF('Sales Orders Summary'!$D$5:$D$117,$A10,'Sales Orders Summary'!$T$5:$T$117)+SUMIF('Sales Orders Summary'!$D$5:$D$117,$A10,'Sales Orders Summary'!$U$5:$U$117)+SUMIF('Sales Orders Summary'!$D$5:$D$117,$A10,'Sales Orders Summary'!$V$5:$V$117)+SUMIF('Sales Orders Summary'!$D$5:$D$117,$A10,'Sales Orders Summary'!$W$5:$W$117)+SUMIF('Sales Orders Summary'!$D$5:$D$117,$A10,'Sales Orders Summary'!$X$5:$X$117)

Can I get a suggestion on how to not calculate the negative values? And if there is an easier way to do this...that suggestion would be welcome also.

Thanks!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Try...

=SUM(IF('Sales Orders Summary'!$D$5:$D$117=$A10,IF('Sales Orders Summary'!$S$5:$X$117>0,'Sales Orders Summary'!$S$5:$X$117)))

...confirmed with CONTROL+SHIFT+ENTER, not just ENTER.
 
Upvote 0
Thank you so much! I should have given in about 6 hours sooner than I did :oops:

I have saved this one in my reference list I compile along my travels of solutions to borrow from some day when another problem arises.

K
 
Upvote 0

Forum statistics

Threads
1,215,039
Messages
6,122,799
Members
449,095
Latest member
m_smith_solihull

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