Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ANDYPAND
 
Posts: n/a
Default Nested Ifs In Conditonal Formats


Is it possible to have nested conditions using Conditional Formatting?
I have a range of columns that change colour according to their
totals.
Here is the Psuedo code.
If E67 = 4 Then E10 Font = GREEN BOLD, F10 = RED BOLD
Else E10= WHITE(invisible), E11 = WHITE(invisible),
If F67 = 7 Then E10 Font = WhiteF10 = GREEN BOLD, G11 = RED
BOLD........
and so on.......
Basically the first Column Header Font goes From white to Green , the
next column header font goes red, then when that one changes green the
next one goes red etc etc.
If this makes sense to anyone, can it be done?


--
ANDYPAND
------------------------------------------------------------------------
ANDYPAND's Profile: http://www.excelforum.com/member.php...o&userid=25351
View this thread: http://www.excelforum.com/showthread...hreadid=392191

  #2   Report Post  
swatsp0p
 
Posts: n/a
Default


If E67 = 4 Then E10 Font = GREEN BOLD, F10 = RED BOLD
Else E10= WHITE(invisible), E11 = WHITE(invisible),
If F67 = 7 Then E10 Font = WhiteF10 = GREEN BOLD, G11 = RED
BOLD........


What happens to E10 if BOTH E67=4 AND F67=7?

Remember, formulas can only 'pull' data from other cells, not 'push'
data to other cells (you need VBA to do that). Therefore, you will
need to set your CF in each specific cell you want to change. e.g. in
E10:

Condition1: Formula Is: =$E$67=4 set format as Green Bold

I would set my normal format of this cell to White, as the only time
you don't want white is when E67=4

repeat as needed for cells F10, G11 and so on...

HTH

Bruce


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=392191

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
Custom Formats centerNegative Excel Discussion (Misc queries) 3 October 7th 05 05:01 PM
Why are my nested sub-totals are displaying incorrectly? chiefdean13 Excel Discussion (Misc queries) 1 July 20th 05 05:45 AM
Maximum Number of Cell Formats Jim Allen Excel Discussion (Misc queries) 4 April 19th 05 07:07 PM
How do I find out how many different cell formats an existing wor. wheelsii Excel Discussion (Misc queries) 1 March 24th 05 04:58 PM
Nested IF statements John Simons Excel Worksheet Functions 14 February 16th 05 06:17 AM


All times are GMT +1. The time now is 02:37 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"