Sumifs returning 0 instead of Blank,

HdCpr

New Member
Joined
Aug 8, 2021
Messages
24
Office Version
  1. 365
Platform
  1. MacOS
Hi

hopefully anyone can help me
please see below formula
I am trying to return blanks in an order template I am trying to see if there is no forecast, but instead of n/a or blank sumifs comes with 0
actually some lines has very low volume so I want to see zeros as well
Can you help

=IF(SUMIFS(RAW!$M$2:$M$301,RAW!$E$2:$E$301,ORDER!N$3,RAW!$A$2:$A$301,ORDER!$B4)/16="","",SUMIFS(RAW!$M$2:$M$301,RAW!$E$2:$E$301,ORDER!N$3,RAW!$A$2:$A$301,ORDER!$B4))
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
SUMIFS returns the sum of cells that meet the given criteria. If no cells meet the criteria then the sum will be zero. Since SUMIFS returns a sum (number), it cannot return "" because that is a text value.

Perhaps you want this?
=IF(SUMIFS(RAW!$M$2:$M$301,RAW!$E$2:$E$301,ORDER!N$3,RAW!$A$2:$A$301,ORDER!$B4)=0,"",SUMIFS(RAW!$M$2:$M$301,RAW!$E$2:$E$301,ORDER!N$3,RAW!$A$2:$A$301,ORDER!$B4))
 
Upvote 0
Solution
SUMIFS returns the sum of cells that meet the given criteria. If no cells meet the criteria then the sum will be zero. Since SUMIFS returns a sum (number), it cannot return "" because that is a text value.

Perhaps you want this?
=IF(SUMIFS(RAW!$M$2:$M$301,RAW!$E$2:$E$301,ORDER!N$3,RAW!$A$2:$A$301,ORDER!$B4)=0,"",SUMIFS(RAW!$M$2:$M$301,RAW!$E$2:$E$301,ORDER!N$3,RAW!$A$2:$A$301,ORDER!$B4))

Thank you for your response
Life is much better when the one has know the knowledge ?
Yes it is what I want . And much appreciated your time
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
Hey! I know this was a really long time ago, but could you break down exactly what this if + sumif combo is doing using a casual sentence?

I know you're nesting the SUMIF within the IF statement, so I assume it's something like: "if this conditional sum function finds a 0 in a cell, return a blank" but i feel like there's more to it...right? let me know! (and thank you in advance!)
 
Upvote 1

Forum statistics

Threads
1,214,621
Messages
6,120,563
Members
448,972
Latest member
Shantanu2024

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