LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Formatting cell backgrounds based on cell contains

On Jul 24, 9:14 am, Stephane Quenson
wrote:
I would add a new column let's say G. I also assume that the first row is for
headers and customer info starts at row 2. Put if G1 the value TRUE. Write
the formula on G2: =IF(A2=A1, G1, NOT(G1)) and copy it down the range. Now G
contains an alternance of TRUE and FALSE value. Select the whole range to
color, then use the conditional formatting (Menu Format Conditional
Formatting), select "Formula Is" and type "=$G2=TRUE" (without the quotes).


Thanks Stephane but that is not quite what I want to do as the sheet
automatically updates it data.

What I'm looking for is a vba solution which can be placed in the
onChange event handler.

But many thanks for the suggestion.

Kindest regards

Alan Newton

 
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 formatting Based on cell A text with conditions in Cell B Raicomm Excel Discussion (Misc queries) 0 January 21st 08 04:46 PM
funtions for colors for fonts or cell backgrounds? Yogi Smith Excel Worksheet Functions 5 July 12th 06 11:26 PM
Conditional cell background formatting, based on cell content nosivad Excel Discussion (Misc queries) 5 February 11th 06 11:12 PM
Sum Formula to Exclude Certain Cell Values/Backgrounds Phil Hageman[_4_] Excel Programming 1 November 5th 04 11:52 PM
Deleting Rows based on text in cell & formatting cell based on text in column beside it Steve Excel Programming 4 February 26th 04 03:31 PM


All times are GMT +1. The time now is 12:21 PM.

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"