Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Advanced Conditional Formatting Help Required - Change cell colour based on values of other cells

I have developed the logic I require, I just need some help in writing
the code to do it as I haven't used Excel for quite some time.

Basically, I need the code to perform the following:

Example:

If Y2 or AA2 0 and Z2 = 0, I need to change the colour of cell Z2 to
red.

I need to perform this function not only on row 2, but on rows 2 to
5642

Any help will be much appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Advanced Conditional Formatting Help Required - Change cell colour based on values of other cells

go to the name box on the left of the formula bar and enter

2:5642
hit enter

This should select rows 2:5642 with cell A2 as the activecell

Do Format=Conditional Format

Change the first dropdown from Cell Value Is to Fromula is.

Put in this formula

=AND(OR($Y20,$AA20),$Z2=0,IsNumber($Z2),or(isnum ber($Y2),isnumber($AA2)))

select your format and OK out.

--
Regards,
Tom Ogilvy


wrote in message
ups.com...
I have developed the logic I require, I just need some help in writing
the code to do it as I haven't used Excel for quite some time.

Basically, I need the code to perform the following:

Example:

If Y2 or AA2 0 and Z2 = 0, I need to change the colour of cell Z2 to
red.

I need to perform this function not only on row 2, but on rows 2 to
5642

Any help will be much appreciated.



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
Change drop down list in one cell based on values in other cells Hemi Excel Discussion (Misc queries) 3 April 5th 23 02:48 PM
change tab colour when using conditional formatting in a cell julie s Excel Worksheet Functions 6 October 23rd 06 09:13 PM
Conditional formatting of adjacent cells based on text in cell [email protected] Excel Programming 1 August 8th 06 12:20 AM
conditional formatting based on values of another cell [email protected] Excel Programming 2 September 1st 05 08:19 AM
Change the colour of a bunch of cells, based on one cell. Craig & Co. Excel Programming 2 October 14th 04 06:28 AM


All times are GMT +1. The time now is 03:26 AM.

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"