Forum Discussion
sanaouachani
Sep 09, 2022Copper Contributor
Formula SUMPRODUCT with all criteria in the same column
Hi, I want to use the SUMPRODUCT formula and copy the same formula in all the table. For some lines, there are no criteria, so I need to replace the criteria by something that means all. I k...
DexterG_III
Sep 09, 2022Iron Contributor
sanaouachanisanaouachani Here's a formula that will include all records for that column if the condition cell is blank.
=SUMPRODUCT(IF(ISBLANK(F6),1,($B$6:$B$23=F6))*IF(ISBLANK(G6),1,($C$6:$C$23=G6))*($D$6:$D$23))
Hope this helps,
Dexter
- sanaouachaniSep 10, 2022Copper Contributor
DexterG_III thanks for your ansuar.
M'y formula ils already complicated. I need a code to replace G6
- DexterG_IIISep 10, 2022Iron Contributor
sanaouachani try this?
=SUMPRODUCT(IF(ISBLANK(F6),1,($B$6:$B$23=F6))*IF(G6="?TOUS LES CRITERES?",1,($C$6:$C$23=G6))*($D$6:$D$23))- sanaouachaniSep 12, 2022Copper Contributorthanks again.
what I'm looking for is a character to replace the blank space.
with SUMIF formula I can use <> to replace the blank space and in this situation, the formula take into account all the criteria