F febausa Member May 7, 2014 #1 Please see the attach file. I want a formula for organize odd s and even numbers Attachments EXAMPLE-DATA.01.xlsx EXAMPLE-DATA.01.xlsx 8.9 KB · Views: 9
N NARAYANK991 Excel Ninja May 7, 2014 #2 Hi , Something like this ? Narayan Attachments EXAMPLE-DATA.01.xlsx EXAMPLE-DATA.01.xlsx 9.5 KB · Views: 8
O Oxidised Member May 7, 2014 #3 a combination sumproduct and mod!! for odds: =SUMPRODUCT(--(MOD($B2:$F2,2)=1)) for evens: =SUMPRODUCT(--(MOD($B2:$F2,2)=0)) PS - bah Narayan, you always beat me! Attachments EXAMPLE-DATA.01.xlsx EXAMPLE-DATA.01.xlsx 9.9 KB · Views: 4
a combination sumproduct and mod!! for odds: =SUMPRODUCT(--(MOD($B2:$F2,2)=1)) for evens: =SUMPRODUCT(--(MOD($B2:$F2,2)=0)) PS - bah Narayan, you always beat me!
Debraj Excel Ninja May 7, 2014 #4 Hi febausa.. another option.. Excel already have function to check if Number is Even / Odd.. which looks like doesn't work with range.. but you can tweak it a bit.. In G2 =SUMPRODUCT(ISODD(B2:F2+0)+0) and if need the final answer in G7.. and dont need those.. G2:G4.. you can use.. In G7 =SUMPRODUCT(--ISODD(B2:F4+0)) For EVEN.. change ISODD to ISEVEN
Hi febausa.. another option.. Excel already have function to check if Number is Even / Odd.. which looks like doesn't work with range.. but you can tweak it a bit.. In G2 =SUMPRODUCT(ISODD(B2:F2+0)+0) and if need the final answer in G7.. and dont need those.. G2:G4.. you can use.. In G7 =SUMPRODUCT(--ISODD(B2:F4+0)) For EVEN.. change ISODD to ISEVEN
Somendra Misra Excel Ninja May 7, 2014 #7 Hi Febausa, Just to add on @Debraj formula apply below formulas if your range can contain blank cells. =SUMPRODUCT(ISEVEN(C2:G4+0)*(C2:G4<>"")) Regards,
Hi Febausa, Just to add on @Debraj formula apply below formulas if your range can contain blank cells. =SUMPRODUCT(ISEVEN(C2:G4+0)*(C2:G4<>"")) Regards,
F febausa Member Jan 16, 2015 #8 Oxidised said: a combination sumproduct and mod!! for odds: =SUMPRODUCT(--(MOD($B2:$F2,2)=1)) for evens: =SUMPRODUCT(--(MOD($B2:$F2,2)=0)) PS - bah Narayan, you always beat me! Click to expand... Very good answer. the formula working very well. Thank you, FEBAUSA
Oxidised said: a combination sumproduct and mod!! for odds: =SUMPRODUCT(--(MOD($B2:$F2,2)=1)) for evens: =SUMPRODUCT(--(MOD($B2:$F2,2)=0)) PS - bah Narayan, you always beat me! Click to expand... Very good answer. the formula working very well. Thank you, FEBAUSA