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.



 

Some videos you may like

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Cbrine

Well-known Member
Joined
Dec 2, 2003
Messages
3,196
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?
 

plettieri

Well-known Member
Joined
Sep 4, 2002
Messages
1,556
Platform
  1. MacOS
Hi:

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

plettieri
 

smashclash

Board Regular
Joined
Nov 24, 2003
Messages
126
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

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
Joined
Nov 24, 2003
Messages
126
Office Version
  1. 365
Platform
  1. Windows
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:
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,203
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)
 

Watch MrExcel Video

Forum statistics

Threads
1,127,165
Messages
5,623,115
Members
415,955
Latest member
ssheldon2021

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
Top