SOLVED
Home

I need to use MOD function

%3CLINGO-SUB%20id%3D%22lingo-sub-309282%22%20slang%3D%22en-US%22%3EI%20need%20to%20use%20MOD%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-309282%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20need%20to%20add%20the%20odd%20columns%20(A%2CC%20and%20E)%20and%20put%20the%20result%20under%20Total%20in%3C%2FP%3E%3CP%3Eand%20add%20the%20even%20columns%20(B%2CD%20and%20F)%20and%20put%20the%20result%20under%20Total%20out%3C%2FP%3E%3CP%3EI%20have%20to%20use%20MOD%20function%20....%20thanks%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20811px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F64736iE791AF91F35B4C69%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI've%20tried%20(%20%3DSUMIF(A2%3AF2%3BMOD(COLUMN(A2)%3B2)%26lt%3B%26gt%3B0%3BA2%3AF2)%20)%20but%20it's%20not%20working%3F%3C%2FP%3E%3CP%3Ecould%20you%20please%20fix%20my%20formula%3F%26nbsp%3B%26nbsp%3B%20thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-309282%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-309298%22%20slang%3D%22en-US%22%3ERe%3A%20I%20need%20to%20use%20MOD%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-309298%22%20slang%3D%22en-US%22%3E%3CP%3EAhmad%2C%20you%20are%20welcome%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-309294%22%20slang%3D%22en-US%22%3ERe%3A%20I%20need%20to%20use%20MOD%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-309294%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EDear%20Sergei%20Baklan%2C%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20you%20so%20much%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-309286%22%20slang%3D%22en-US%22%3ERe%3A%20I%20need%20to%20use%20MOD%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-309286%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat%20could%20be%3C%2FP%3E%0A%3CPRE%3E%3DSUMPRODUCT(A2%3AF2*ISODD(COLUMN(A2%3AF2)))%0Aand%0A%3DSUMPRODUCT(A2%3AF2*ISEVEN(COLUMN(A2%3AF2)))%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
ahmad ali
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
Solution

Hi,

 

That could be

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

 

Highlighted

Dear Sergei Baklan, 

 

Thank you so much 

Ahmad, you are welcome

Related Conversations
A problem with the Zoom level of a Tab
Tavory in Discussions on
9 Replies
Which formula to use
Ramon Haagen in Excel on
2 Replies
function talking to table storage
donquijote in Compute on
0 Replies
Calculated column help
gopalaraoa in SharePoint on
1 Replies
Combining IF and INDEX functions
Hans van Deursen in Windows PowerShell on
2 Replies
Finding the data and to color code it
NishantSalunkhe in Excel on
3 Replies