Forum Discussion
31moons
Aug 25, 2020Copper Contributor
Minus cells if other cells equal
I'm trying do the following and it's not working. If cells X2:X30 "<>CLSD" Then AI2-S2 This formula is not working: =SUMIF(X2:X30,"<>CLSD",AI2-S2)
SergeiBaklan
Aug 25, 2020Diamond Contributor
Depends on your needs, but to sum on entire range
it could be
=SUMPRODUCT((X2:X30="CLSD")*(AI2:AI30-S2:S30))31moons
Aug 26, 2020Copper Contributor
SergeiBaklan This worked too. Thank you! Thank you!
- SergeiBaklanAug 26, 2020Diamond Contributor
31moons , you are welcome