LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Formula to set cell color

I have a column containing a sorted list of values which includes duplicate
values such as:

Row 1: 1
Row 2: 1
Row 3: 2
Row 4: 3
Row 5: 3
Row 6: 4
Row 7: 4
Row 8: 4
Row 9: 5

Without using VBA or macros (an unfortunately non-negotiable requirement of
the customer) I'm tasked to do the following using conditional formatting:
1. Make a cell that has the same value as the cell immediately above it the
same color as that of the cell immediately above it
2. Make the color of a cell whose value is not the same as the cell
immediately above it a different color than the cell immediately above it
3. Alternating two colors is fine

For my example data, the cells in rows 1 and 2 should be yellow, row 3
should be blue, row 4 and 5 should be yellow, row 6 through 8 should be
blue, and row 9 should be yellow.

Using Excel 2003 and just formulas, I don't think that this is possible but
I'm hoping that someone out there will know better. I don't know if Excel
2007 has added something to make this possible.

Anyone know of a way to do this?

Brian


 
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
Formula to set color in a cell Dika Excel Worksheet Functions 1 February 10th 09 09:23 AM
Cell color formula Scafidel Excel Discussion (Misc queries) 5 July 23rd 07 07:26 PM
Formula Cell color limitation fenixdood Excel Discussion (Misc queries) 7 November 14th 06 09:44 PM
color a cell with a formula in it? Ken Excel Worksheet Functions 5 June 12th 06 07:40 AM
need formula to add cell sums by color of cell Brucet Excel Discussion (Misc queries) 2 December 29th 05 09:46 PM


All times are GMT +1. The time now is 01:20 AM.

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

About Us

"It's about Microsoft Excel"