Sumifs return 0 - I want it to return blank. (unless the correct value is 0)

Martinpetersson

New Member
Joined
Apr 27, 2022
Messages
31
Office Version
  1. 365
Platform
  1. Windows
If excel wont find a match it will return "0" I don't want that.

Reason why I use sumifs is because I need to return a value with two criterias.
Are there any other formulas that I can use for returning a value based on two criterias?

I don't need to sum nothing because it's always only one cell value to return. But I Use sumifs because of the v-lookup didn't work with multiple criterias.

Thank you in advance.



Samling.xlsx
ABCDEFG
32022-06-0812002
All
Cell Formulas
RangeFormula
D3D3=SUMIFS('S-FORM'!$I:$I,'S-FORM'!$F:$F,"gul",'S-FORM'!$J:$J,A3)
E3E3=SUMIFS('S-FORM'!$I:$I,'S-FORM'!$F:$F,"blå",'S-FORM'!$J:$J,A3)
F3F3=SUMIFS('S-FORM'!$I:$I,'S-FORM'!$F:$F,"grön",'S-FORM'!$J:$J,A3)
G3G3=D3+E3+F3
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
You’re right! Haven’t thought about that part yet. But G3 is not really an important value for me.

However, the values that I want to return comes from an office form and those values are ratings from 0-10 but if someone forgets to send in their ratings for that date, my document will show “0” and then it will look like they sent in “0”as an answer.

But remember, sometime 0 will be the correct value.
 
Upvote 0
Ok, how about
Excel Formula:
=FILTER('S-FORM'!$I:$I,('S-FORM'!$F:$F="gul")*('S-FORM'!$J:$J=A3),"")
 
Upvote 0
If you could return "" instead of 0, then you can just change this formula:
Excel Formula:
=D3+E3+F3
to this:
Excel Formula:
=SUM(D3:F3)
as SUM will not choked on the "" values like + does.

EDIT:
And looks like Fluff just posted a formula that might just do that for you.
 
Upvote 0
Thanks for trying to help me.

1654760090242.png


Formula I use now:

D3 =FILTER('S-FORM'!$I:$I;('S-FORM'!$F:$F="Gul")*('S-FORM'!$J:$J=A3);"No results")
E3 =FILTER('S-FORM'!$I:$I;('S-FORM'!$F:$F="BLÅ")*('S-FORM'!$J:$J=A3);"No results")
F3 =FILTER('S-FORM'!$I:$I;('S-FORM'!$F:$F="GRÖN")*('S-FORM'!$J:$J=A3);"No results")


This is what 'S-form' sheet look like.

Value "2" should be returned in D3. (Above)
"Blå" or "Grön" doesn't appear on that date (2022-06-08) so
"No results" should be returned in E3 and F3 (Above)

1654760270243.png


Suggestions please. Thank you so much!
 
Upvote 0
It looks like column J is text, not a date, in which case you could use:

Excel Formula:
=FILTER('S-FORM'!$I:$I;('S-FORM'!$F:$F="Gul")*('S-FORM'!$J:$J=TEXT(A3;"yyyy-mm-dd"));"No results")
 
Upvote 0
Yes, I can use text in that column but it dosent seem to be working anyway. Still returning"no results" :(
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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