Odd Even formula

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,446
Office Version
  1. 2007
Platform
  1. Windows
I need a formula that will return 1 if the criteria is : Even,Odd,Even,Odd,Even,Odd,Even.
If not a blank cell.

Example :

A1:G1 2-5-8-5-6-3-0
H1 will return 1 or Blank.

Thank you.
 
Yes, you did pushkardey,

Your formula also works great, you guys are really awesome.

Thank you very for all the help.
Serge.
 
Upvote 0

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Thank you Marcelo for giving me both solution.

But I choose your 1st one and it work fine, I'm trying not to put macro in my file, I'm able to play around with the formulas.

Thank you for the precious help.
Serge.

You are welcome and tks for the feedback.

M.
 
Upvote 0
Hi Serge,

Curious.... can you explain what is the application of this ? is it a sort of control? or exception reporting ? I am just curious. thanks,
 
Upvote 0
Pushkardey and Marcelo Branco,

I used your formulas,
=IF((MOD(A1+C1+E1+G1,2)&MOD(B1+D1+F1,2))="01",1,"")
=IF(AND(MOD(A1+C1+E1+G1,2)=0,MOD(B1+D1+F1,2)=1),1,"")

and they worked with my test file but when I enter them in my real file they wouldn't give me the right result ??? why is that ?
My actual cells range are : AG6:AM6 up to row 600.

Sorry about the late reply,I had to leave and I just got back !!

The only formula that worked perfectly is the 2nd one in Mikerickson's post.

I change a bit the range of his formula to adapt to mine and scroll down to all my data and the result is perfect.

I need to change the formula to work for different criteria for example :

1) OEOEOEO
2) EEEEEEE
3) OOOOOOO
4) EEEOOOO
Etc..

I tried to fix it but I couldn't figure it out how, can someone explain what need to be change in the formula to make it happen for the example above ? and then I'll be able to do the other one.

Thanks for the help.
Serge.
 
Upvote 0
Hi snoopyhr,

It's for some game data that I try to see which have most of Odd or Even numbers and in which position.
 
Upvote 0
Thanks Armando for the formula, I'm good with that one.

What I'm asking is how to change the formula from Mikerickson ( post # 2 )

=IF(6=SUMPRODUCT(MOD(COLUMN(A1:F1)+A1:F1, 2)), 1, "")

( Because I haven't heard from him after that !! ).

This one work for EOEOEOE.
I need to change it for OEOEOEO ( IN THAT ORDER )
and then for EEEOOOO, and OOOOEEE, Etc...Etc...,

What I would like is to understand how the formula works, this way I wouldn't bother anyone and would be able to change it as needed for my file.

I hope someone can brake it down for me.

Thank you.
Serge.
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,682
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top