SUMPRODUCT CONTINUED

kpro

New Member
Joined
Dec 29, 2022
Messages
12
Office Version
  1. 365
Platform
  1. Windows
I am self taught and don't always know the right way to ask the questions to google. 2 days ago I posted my sumproduct formula and with help it worked perfectly. Now I am trying to add an IF for a zero return, (which is ok, I need the zeros to populate), but if it is not a zero, I need it to be whatever the SUMPRODUCT formula is populating. I used in cell K4 =iferror(if(sumproduct(data))="0",K4,"Not Available"),"") and it only will populate with "Not Available" even if the sumproduct result was 100. I also do not have to use the IF formula, I just need the formulated 0 to result in "Not Available" and any other number formulated to stay that number. Any ideas?

Thank you in advance for any help.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Remove the quote marks around your 0
It is still populating Not Available even though the formulated result is 115.9

1702473911030.png

1702473936516.png


if i take it away, it works perfectly
1702474001567.png
 
Upvote 0
It is still populating Not Available even though the formulated result is 115.9

View attachment 103444
View attachment 103445

if i take it away, it works perfectly
View attachment 103446
sorry, here is the formula
=IFERROR(SUMPRODUCT((Sheet2!$A$3:$A$857=Sheet1!A4)*(Sheet2!$B$3:$B$857=Sheet1!B4)*(Sheet2!$C$3:$C$857=Sheet1!C4)*(Sheet2!$D$3:$D$857=D4)*(Sheet2!$E$3:$E$857=E4)*(Sheet2!$F$3:$F$857=Sheet1!F4)*(Sheet2!$G$3:$G857=G4)*(Sheet2!$H3:$H857=Sheet1!H4)*(Sheet2!$I$3:$I$857)),"")
 
Upvote 0
I think your logic is back to front, change it to <>0.
I assume you want K4 when its not 0 and Not Available when it is 0.
Also get rid of the Sheet1 references it just clutters up the formula.

Adjusted formula
Excel Formula:
=IFERROR(IF(SUMPRODUCT((Sheet2!$A$3:$A$857=A4)*(Sheet2!$B$3:$B$857=B4)*(Sheet2!$C$3:$C$857=C4)*(Sheet2!$D$3:$D$857=D4)*(Sheet2!$E$3:$E$857=E4)*(Sheet2!$F$3:$F$857=F4)*(Sheet2!$G$3:$G857=G4)*(Sheet2!$H3:$H857=H4)*(Sheet2!$I$3:$I$857))<>0,K4,"Not Available"),"")

Easier to read version:
(using alt+enter)
Excel Formula:
=IFERROR(IF(SUMPRODUCT((
Sheet2!$A$3:$A$857=A4)
*(Sheet2!$B$3:$B$857=B4)
*(Sheet2!$C$3:$C$857=C4)
*(Sheet2!$D$3:$D$857=D4)
*(Sheet2!$E$3:$E$857=E4)
*(Sheet2!$F$3:$F$857=F4)
*(Sheet2!$G$3:$G857=G4)
*(Sheet2!$H3:$H857=H4)
*(Sheet2!$I$3:$I$857))<>0,K4,"Not Available"),"")
 
Upvote 0
I think your logic is back to front, change it to <>0.
I assume you want K4 when its not 0 and Not Available when it is 0.
Also get rid of the Sheet1 references it just clutters up the formula.

Adjusted formula
Excel Formula:
=IFERROR(IF(SUMPRODUCT((Sheet2!$A$3:$A$857=A4)*(Sheet2!$B$3:$B$857=B4)*(Sheet2!$C$3:$C$857=C4)*(Sheet2!$D$3:$D$857=D4)*(Sheet2!$E$3:$E$857=E4)*(Sheet2!$F$3:$F$857=F4)*(Sheet2!$G$3:$G857=G4)*(Sheet2!$H3:$H857=H4)*(Sheet2!$I$3:$I$857))<>0,K4,"Not Available"),"")

Easier to read version:
(using alt+enter)
Excel Formula:
=IFERROR(IF(SUMPRODUCT((
Sheet2!$A$3:$A$857=A4)
*(Sheet2!$B$3:$B$857=B4)
*(Sheet2!$C$3:$C$857=C4)
*(Sheet2!$D$3:$D$857=D4)
*(Sheet2!$E$3:$E$857=E4)
*(Sheet2!$F$3:$F$857=F4)
*(Sheet2!$G$3:$G857=G4)
*(Sheet2!$H3:$H857=H4)
*(Sheet2!$I$3:$I$857))<>0,K4,"Not Available"),"")
It is telling me it is a circular reference and changing it to 0
 
Upvote 0
What sheet and cell is your formula in ?
Also is there a formula in K4 ? If so show me the formula.
If you change K4 in the formula with "Available" does the formula work in principle ?
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,177
Members
452,615
Latest member
bogeys2birdies

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