"E" or "O" for the first, even or odd digit in a number

J

jenn

hi there!

I need a formula, to say "E" if the first digit of a four-digit-number in A1
is even. and "O" if its odd. Thanks a lot!
 
R

Ron Rosenfeld

hi there!

I need a formula, to say "E" if the first digit of a four-digit-number in A1
is even. and "O" if its odd. Thanks a lot!


=IF(MOD(INT(A1/1000),2),"O","E")


--ron
 
Top