MS Office Forum / Excel / New Users / February 2008
Conditional Format if cell value is odd
|
|
Thread rating:  |
mjones - 12 Feb 2008 01:05 GMT Hi all,
Does anyone know how to do this?
Thanks a bunch,
Michele
Tyro - 12 Feb 2008 01:12 GMT Please state your question in the body of the message, not in the subject.
=ISODD(A1)
Tyro
> Hi all, > [quoted text clipped - 3 lines] > > Michele Pete_UK - 12 Feb 2008 01:18 GMT ISODD is not a standard function - requires ATP to be installed with versions before XL2007.
Pete
> Please state your question in the body of the message, not in the subject. > [quoted text clipped - 11 lines] > > - Show quoted text - Tyro - 12 Feb 2008 01:29 GMT So? Install ATP.
Tyro
ISODD is not a standard function - requires ATP to be installed with versions before XL2007.
Pete
On Feb 12, 1:12 am, "Tyro" <T...@hotmail.com> wrote:
> Please state your question in the body of the message, not in the subject. > [quoted text clipped - 15 lines] > > - Show quoted text - T. Valko - 12 Feb 2008 03:36 GMT You can't directly use functions from the ATP in conditional formatting.
 Signature Biff Microsoft Excel MVP
> So? Install ATP. > [quoted text clipped - 26 lines] >> >> - Show quoted text - Tyro - 12 Feb 2008 03:54 GMT I use Excel 2007.
> You can't directly use functions from the ATP in conditional formatting. > [quoted text clipped - 28 lines] >>> >>> - Show quoted text - mjones - 12 Feb 2008 04:08 GMT > I use Excel 2007. > [quoted text clipped - 34 lines] > > >>> - Show quoted text - 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
Tyro - 12 Feb 2008 04:13 GMT Select your cells A1:A100 for example and then conditionally format with: =MOD(A1,2)=1, then select your format color.
Tyro
>> I use Excel 2007. >> [quoted text clipped - 45 lines] > > Michele mjones - 12 Feb 2008 04:17 GMT > Select your cells A1:A100 for example and then conditionally format with: > =MOD(A1,2)=1, then select your format color. [quoted text clipped - 54 lines] > > > Michele That did it. Thanks!
Tyro - 12 Feb 2008 05:21 GMT You're welcome
Tyro
>> Select your cells A1:A100 for example and then conditionally format with: >> =MOD(A1,2)=1, then select your format color. [quoted text clipped - 57 lines] > > That did it. Thanks! carlo - 12 Feb 2008 01:12 GMT If the cell value you want to check is A1, then:
formula is =mod(A1,2) = 0
hope that helps
Carlo
> Hi all, > [quoted text clipped - 3 lines] > > Michele Tyro - 12 Feb 2008 01:14 GMT 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
On Feb 12, 10:05 am, mjones <mich...@quality-computing.com> wrote:
> Hi all, > [quoted text clipped - 3 lines] > > Michele Tyro - 12 Feb 2008 01:32 GMT 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
> Hi all, > [quoted text clipped - 3 lines] > > Michele Rick Rothstein (MVP - VB) - 12 Feb 2008 02:55 GMT > 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 [quoted text clipped - 9 lines] >> >> Michele Rick Rothstein (MVP - VB) - 12 Feb 2008 02:56 GMT > =MOD(A1,2)<>0 to determine if a cell is odd Or even... =MOD(A1,2)=1
Rick
Tyro - 12 Feb 2008 03:01 GMT Yes indeedy!
Tyro
>> =MOD(A1,2)<>0 to determine if a cell is odd > > Or even... =MOD(A1,2)=1 > > Rick Tyro - 12 Feb 2008 03:03 GMT 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
>> =MOD(A1,2)<>0 to determine if a cell is odd > > Or even... =MOD(A1,2)=1 > > Rick Tyro - 12 Feb 2008 03:06 GMT I also understand that division by 2 can produce a remainder of only 0 or 1.
Tyro
>> =MOD(A1,2)<>0 to determine if a cell is odd > > Or even... =MOD(A1,2)=1 > > Rick Tyro - 12 Feb 2008 03:07 GMT Assuming of course that the number being divided is an integer.
Tyro
>> =MOD(A1,2)<>0 to determine if a cell is odd > > Or even... =MOD(A1,2)=1 > > Rick Rick Rothstein (MVP - VB) - 12 Feb 2008 03:32 GMT > 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
Tyro - 12 Feb 2008 03:51 GMT I don't know what the OP has in the cell.
Tyro
>> 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 Rick Rothstein (MVP - VB) - 12 Feb 2008 06:48 GMT All I was saying was... if the cell's content is not an integer, the question "Is it odd?" would make no sense (by definition, only integers can be odd or even).
Rick
>I don't know what the OP has in the cell. > [quoted text clipped - 6 lines] >> >> Rick Tyro - 12 Feb 2008 01:42 GMT You may also use =ISODD(A1) if you are using Excel 2007. You did not state what version you are using.
Tyro
> Hi all, > [quoted text clipped - 3 lines] > > Michele
|
|
|