I have a simple problem.
Say I have a range of cells with some numbers B1:D1
I want to only add the cells if the cells below contain a number B2:D2
I know I can write a simple formula =If(B2<>0,B1,0)+If(C2<>0,C1,0)...
That gets to be too long if my range is B1:Z1!
I know there has to be a simple solution with sumif and maybe sumproduct, but I am stumped. I look forward to any help. Thanks!
Say I have a range of cells with some numbers B1:D1
I want to only add the cells if the cells below contain a number B2:D2
I know I can write a simple formula =If(B2<>0,B1,0)+If(C2<>0,C1,0)...
That gets to be too long if my range is B1:Z1!
I know there has to be a simple solution with sumif and maybe sumproduct, but I am stumped. I look forward to any help. Thanks!