Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 683
Default Conditional formating

Does anyone know how to highlight even numbers one color and then odds another
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Conditional formating

Assuming the numbers are integers.

Assume the range of cells is A1:A10
Select the range A1:A10
Goto the menu FormatConditional Formatting
Condition 1 (even numbers)
Formula Is: =AND(ISNUMBER(A1),MOD(A1,2)=0)
Click the Format button
Select the desired style(s)
OK
Click the Add button
Condition 2 (odd numbers)
Formula Is: =MOD(A1,2)
Click the Format button
Select the desired style(s)
OK out

--
Biff
Microsoft Excel MVP


"Brian" wrote in message
...
Does anyone know how to highlight even numbers one color and then odds
another



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Conditional formating

Highlight the cells you want this to apply to (assume A1:A100). Then
with A1 the active cell in this highlighted range, click on Format |
Conditional Formatting and in the panel that pops up choose Formula Is
rather than Cell Value Is in the first box and put this formula in the
next box:

=MOD(A1,2)=0

Then click the Format button, click the Patterns tab (for background
colours) and choose your colour (eg Bright yellow). Click OK once,
then Add another condition in a similar manner with a formula of:

=MOD(A1,2)=1

and this time choose a different colour (eg Red). Click OK twice, and
you should find that even numbers have a yellow background and odd
numbers have red.

Hope this helps.

Pete

On Dec 10, 7:25 pm, Brian wrote:
Does anyone know how to highlight even numbers one color and then odds another


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formating kaci Excel Worksheet Functions 7 January 16th 07 02:16 PM
conditional formating #N/A Dave Excel Worksheet Functions 2 January 12th 07 03:07 PM
conditional formating [email protected] Excel Discussion (Misc queries) 2 April 22nd 06 06:19 PM
Install dates formating using conditional formating? Jerry Eggleston Excel Discussion (Misc queries) 2 November 9th 05 05:49 PM
Conditional Formating Aviator Excel Discussion (Misc queries) 1 January 12th 05 05:37 PM


All times are GMT +1. The time now is 04:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"