# Need SumIF help

#### smashclash

##### Board Regular
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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

#### Cbrine

##### Well-known Member
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?

#### Brian from Maui

##### MrExcel MVP
Try,

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

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

#### plettieri

##### Well-known Member
Hi:

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

plettieri

#### smashclash

##### Board Regular
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?

#### smashclash

##### Board Regular
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?"

##### MrExcel MVP
Since the F-range houses text values, not numbers, the parser runs wild with respect to SumIf...

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

Replies
5
Views
245
Replies
0
Views
294
Replies
0
Views
887
Replies
1
Views
180
Replies
14
Views
786

1,171,065
Messages
5,873,585
Members
432,985
Latest member
leahw

### 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.

### Which adblocker are you using?

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

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