SOLVED

I need to use MOD function

Brass Contributor

Hello,

I need to add the odd columns (A,C and E) and put the result under Total in

and add the even columns (B,D and F) and put the result under Total out

I have to use MOD function .... thanks

Capture.PNG

I've tried ( =SUMIF(A2:F2;MOD(COLUMN(A2);2)<>0;A2:F2) ) but it's not working?

could you please fix my formula?   thanks

3 Replies
best response confirmed by ahmad ali (Brass Contributor)
Solution

Hi,

 

That could be

=SUMPRODUCT(A2:F2*ISODD(COLUMN(A2:F2)))
and
=SUMPRODUCT(A2:F2*ISEVEN(COLUMN(A2:F2)))

 

Dear Sergei Baklan, 

 

Thank you so much 

Ahmad, you are welcome

1 best response

Accepted Solutions
best response confirmed by ahmad ali (Brass Contributor)
Solution

Hi,

 

That could be

=SUMPRODUCT(A2:F2*ISODD(COLUMN(A2:F2)))
and
=SUMPRODUCT(A2:F2*ISEVEN(COLUMN(A2:F2)))

 

View solution in original post