Need SumIF help

smashclash

Board Regular
Joined
Nov 24, 2003
Messages
126
Office Version
  1. 365
Platform
  1. Windows
Below is a preview of my worksheet. What I'm trying to get excel to do is sum column I in row 47 if the number in Column F does NOT equal 0. For some reason excel will not recognize the "<>0" to not include the 0 accounts. However, if take the same formula and replace teh<> with =, it only adds the 0's? I could probably just use multiple if statements to include everything except the 0, but there has to be a way to simply exclude anything that is a 0. Any ideas???
(one other thing, not sure if it matters, but the columns D-H are text). Thanks in advance.



 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Not sure what the issue is, but I tested your formula on a blank sheet, and the "<>0" does work as the criteria for the Sumif(). Could it be the formats of your values? Are they text values?
 
Upvote 0
Hi:

Your formula seems to work for me....possible text items for your criteria...

plettieri
 
Upvote 0
Brian from Maui said:
Try,

=SUMIF(F35:F39,"<>0",J35:J39)

=SUMIF(F35:F39,">0",J35:J39)

Hmmm, that is returning 0 for my sum. That makes no sense. What is wrong with my excel?
 
Upvote 0
OK, well I deleted everything that was in column F and retyped what used to be in there. Also changed the format of the column to "Number." Seems to work now. I guess it's one of those excel "resets?" :LOL:
 
Upvote 0
Since the F-range houses text values, not numbers, the parser runs wild with respect to SumIf...

Try instead:

=SUMPRODUCT(--(F35:F46<>0&""),I35:I46)
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

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