"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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top