R rsd007 Member Jan 2, 2023 #1 Hello, I am trying to work with Sumproduct formula with multiple criteria but is not working can someone help me with this. i am trying to calculate total value of each product with some color good and imperfect separate. Thanks Attachments Sumproduct.xlsx Sumproduct.xlsx 12.3 KB · Views: 9 Last edited: Jan 2, 2023
Hello, I am trying to work with Sumproduct formula with multiple criteria but is not working can someone help me with this. i am trying to calculate total value of each product with some color good and imperfect separate. Thanks
John Jairo V Well-Known Member Jan 2, 2023 #2 Hi, @rsd007! I leave two options in the file. Check it! Blessings! Attachments Sumproduct.xlsx Sumproduct.xlsx 13.5 KB · Views: 8
R rsd007 Member Jan 2, 2023 #3 Hello, Thanks for quick reply, Problem is it should only multiply and add only White and Grey items and rest should be zero. Last edited: Jan 2, 2023
Hello, Thanks for quick reply, Problem is it should only multiply and add only White and Grey items and rest should be zero.
B bosco_yip Excel Ninja Jan 2, 2023 #4 Try to add an If function as in: F2 formula copied down: =IF(SUMPRODUCT((A2="White")+(A2="Grey")),SUMPRODUCT((($A$2:A2="White")+($A$2:A2="Grey"))*($B$2:B2=B2)*$D$2:D2*ABS($E$2:E2)),0) Attachments Sumproduct(BY).xlsx Sumproduct(BY).xlsx 13.2 KB · Views: 9
Try to add an If function as in: F2 formula copied down: =IF(SUMPRODUCT((A2="White")+(A2="Grey")),SUMPRODUCT((($A$2:A2="White")+($A$2:A2="Grey"))*($B$2:B2=B2)*$D$2:D2*ABS($E$2:E2)),0)
John Jairo V Well-Known Member Jan 2, 2023 #5 Hi to both! Ok... see the attachment again. Blessings! Attachments Sumproduct.xlsx Sumproduct.xlsx 13.8 KB · Views: 11
R rsd007 Member Jan 3, 2023 #6 Thankyou Both bosco_yip & John Jairo V I wanted to keep the Cell Blank if conditions not exists John formula insert - . Both solution work
Thankyou Both bosco_yip & John Jairo V I wanted to keep the Cell Blank if conditions not exists John formula insert - . Both solution work
B bosco_yip Excel Ninja Jan 3, 2023 #7 Then, try this: =IF((A2="White")+(A2="Grey"),SUMPRODUCT((($A$2:A2="White")+($A$2:A2="Grey"))*($B$2:B2=B2)*$D$2:D2*ABS($E$2:E2)),"")
Then, try this: =IF((A2="White")+(A2="Grey"),SUMPRODUCT((($A$2:A2="White")+($A$2:A2="Grey"))*($B$2:B2=B2)*$D$2:D2*ABS($E$2:E2)),"")
R rsd007 Member Jan 12, 2023 #9 Hello, New problem found some time formula work some time I get only #Value ( have tried all suggestion but get same result ) Attachments Sumproduct (1) also try.xlsx Sumproduct (1) also try.xlsx 25.8 KB · Views: 8
Hello, New problem found some time formula work some time I get only #Value ( have tried all suggestion but get same result )
B bosco_yip Excel Ninja Jan 12, 2023 #10 Maybe, =IF(OR(D8={"Buy";"Bought"}),SUMPRODUCT($H$8:H8,ABS($J$8:J8),--($E$8:E8=E8),($D$8:D8="Buy")+($D$8:D8="Bought")),"")
Maybe, =IF(OR(D8={"Buy";"Bought"}),SUMPRODUCT($H$8:H8,ABS($J$8:J8),--($E$8:E8=E8),($D$8:D8="Buy")+($D$8:D8="Bought")),"")
R rsd007 Member Jan 12, 2023 #11 Hi, Work on this sheet when try to run on main sheet dose not work will get Cell on line 8 as blank which is correct but rest is #VALUE
Hi, Work on this sheet when try to run on main sheet dose not work will get Cell on line 8 as blank which is correct but rest is #VALUE