sumifs not blank

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
2,065
Office Version
  1. 365
Platform
  1. Windows
i need to sumifs not blank cells. I have three blank cells in a range and i want to sum the non blanks. I have tried using "<>"" and "<>" but they do not work. What should i be using.

=SUMIFS(RAW!$R$1:$R$28869,RAW!$AM$1:$AM$28869,Sheet4!$A5,RAW!$AF$1:$AF$28869,"<>NULL",RAW!$AB$1:$AB$28869,"<>")
 
Unfortunately the SumIfs, CountIfs group of functions only excludes empty cells when trying to exclude cells that are either empty OR contain a zero length string ie "".
Filter and SumProduct (which for more recent versions of excel can be reduced to just Sum) are better options.
Try this:
Excel Formula:
=SUM(
 RAW!$R$1:$R$28869*
(RAW!$AM$1:$AM$28869=Sheet4!$A5)*
(RAW!$AF$1:$AF$28869<>"NULL")*
(RAW!$AB$1:$AB$28869<>""))

Note: If your formula is actually on Sheet4 then best practice is to remove the references to the sheet the formula is in eg $A5 not Sheet4!$A5
 
  • Like
Reactions: ajm
Upvote 0

Forum statistics

Threads
1,226,840
Messages
6,193,279
Members
453,788
Latest member
drcharle

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