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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
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
 
Back
Top