Conditional Format if cell value is odd

T

Tyro

Please state your question in the body of the message, not in the subject.

=ISODD(A1)

Tyro
 
C

carlo

If the cell value you want to check is A1, then:

formula is =mod(A1,2) = 0

hope that helps

Carlo
 
T

Tyro

That formula produces TRUE if the cell value is even, not odd.

Tyro

If the cell value you want to check is A1, then:

formula is =mod(A1,2) = 0

hope that helps

Carlo
 
P

Pete_UK

ISODD is not a standard function - requires ATP to be installed with
versions before XL2007.

Pete
 
T

Tyro

So? Install ATP.

Tyro

ISODD is not a standard function - requires ATP to be installed with
versions before XL2007.

Pete
 
T

Tyro

If you do not wish to install the Analysis Toolpak, you may use
=MOD(A1,2)<>0 to determine if a cell is odd and =MOD(A1,2)=0 to determine if
a cell is even

Tyro
 
T

Tyro

You may also use =ISODD(A1) if you are using Excel 2007. You did not state
what version you are using.

Tyro
 
R

Rick Rothstein \(MVP - VB\)

Tyro said:
If you do not wish to install the Analysis Toolpak, you may use
=MOD(A1,2)<>0 to determine if a cell is odd and =MOD(A1,2)=0 to determine
if a cell is even

Tyro
 
R

Rick Rothstein \(MVP - VB\)

=MOD(A1,2)<>0 to determine if a cell is odd

Or even... =MOD(A1,2)=1

Rick
 
T

Tyro

In the future, I shall attempt to exhaust all possibilities, just to make
sure that no stone is left unturned in an answer <g>

Tyro
 
R

Rick Rothstein \(MVP - VB\)

Assuming of course that the number being divided is an integer.

Being an integer was a requirement of the original question (Is value odd?).

Rick
 
M

mjones

I use Excel 2007.

Hi all,

I'm using Excel 2003 (sorry, need to add that now), and the conditonal
format is on a range of cells so only the cells with odd numbers will
have a different color.

Sorry that I didn't clarify better.

Michele
 

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