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
 
Check that the values in col F & in D2 do not have any leading/trailing spaces.
 
Upvote 0

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Also, for your regional settings, you might need to alter the format codes to whatever you normally use for year, month and day.
 
Upvote 0
Thanks again for trying to help. Nothing is seem to be working.
I'm trying to give you the whole document divided in two mini sheets (one for each sheet)

Here is the main sheet

Test_excel.xlsx
ABCDEFGHIJK
1S-form
2DateYellowBlueGreenTotalDateYellowBlueGreenTotal
32022-06-07No resultsNo resultsNo results02022-06-075No resultsNo results5
42022-06-08No resultsNo resultsNo results02022-06-0828No results10
52022-06-09No resultsNo resultsNo results02022-06-093104
6
7This is what I have nowThis is what I want to have
All
Cell Formulas
RangeFormula
B3:B5B3=FILTER('S-FORM'!$I:$I,('S-FORM'!$F:$F="yellow")*('S-FORM'!$J:$J=TEXT(A3,"yyyy-mm-dd")),"No results")
C3:C5C3=FILTER('S-FORM'!$I:$I,('S-FORM'!$F:$F="Blue")*('S-FORM'!$J:$J=TEXT(A3,"yyyy-mm-dd")),"No results")
D3:D5D3=FILTER('S-FORM'!$I:$I,('S-FORM'!$F:$F="green")*('S-FORM'!$J:$J=TEXT(A3,"yyyy-mm-dd")),"No results")
E3:E5,K3:K5E3=SUM(B3:D3)


Here is the 'S-form' sheet. Originally this sheet contains a table that collects new data up to three times each day.

Test_excel.xlsx
ABCDEFGHIJ
1IDStart timeCompletion timeEmailNameVilken skiftfärg hade föregående skift?Användes 5S tavlan på föregående skift?Hur många avvikelser kan du se?Hur många avvikelser kan du se?2Shortdate
282022-06-07 14:282022-06-07anonymousYellow52022-06-07
392022-06-08 10:262022-06-08anonymousYellow22022-06-08
4102022-06-08 14:282022-06-08anonymousBlue82022-06-08
5112022-06-09 10:262022-06-09anonymousGreen02022-06-09
6122022-06-09 14:282022-06-09anonymousYellow32022-06-09
7132022-06-09 10:262022-06-09anonymousBlue12022-06-09
S-FORM
 
Upvote 0
What do:
=ISNUMBER(A3)
=ISNUMBER('S-FORM'!$J$2)
=TEXT(44722,"yyyy-mm-dd")

return if you enter them on the summary sheet?
 
Upvote 0
What do:
=ISNUMBER(A3)
=ISNUMBER('S-FORM'!$J$2)
=TEXT(44722,"yyyy-mm-dd")

return if you enter them on the summary sheet?
Where am I going to put those formulas?

If I put them in the summary sheet
j2 will return as false.



Samling.xlsx
ABCDEFGHIJ
1IDStart timeCompletion timeEmailNameVilken skiftfärg hade föregående skift?Användes 5S tavlan på föregående skift?Hur många avvikelser kan du se?Hur många avvikelser kan du se?2Shortdate
282022-06-07 14:282022-06-07anonymousGrön32022-06-07
392022-06-08 10:262022-06-08anonymousGul22022-06-08
S-FORM
Cell Formulas
RangeFormula
J2:J3J2=TEXT([@[Start time]],"åååå-MM-DD")
 
Upvote 0
So it looks like your FILTER formulas should be:

Excel Formula:
=FILTER('S-FORM'!$I:$I,('S-FORM'!$F:$F="yellow")*('S-FORM'!$J:$J=TEXT(A3,"åååå-MM-DD")),"No results")
 
Upvote 0
Solution

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