Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to have more than 3 conditional statements (excel 2003). I
need to add another one but I'm not sure how to do it. Here's what I have right now: Columns("P:Q").Select Selection.FormatConditions.Delete Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlBetween, _ Formula1:="=""10%Late - 10%Ahead""", Formula2:="=""10%Under-10%Over""" Selection.FormatConditions(1).Interior.ColorIndex = 4 Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlBetween, _ Formula1:="=""11%-20% Late""", Formula2:="=""11%-20% Over""" Selection.FormatConditions(2).Interior.ColorIndex = 6 Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlBetween, _ Formula1:="=""More than 20% Late""", Formula2:="=""More than 20% Over""" Selection.FormatConditions(3).Interior.ColorIndex = 3 Cells.Select If anyone can help me with this, that would be great! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Nope. xl2003 only supports 3 of those conditional formatting rules--just like
you see in the user interface. (xl2007 has lots more, fyi.) Bob Phillips has an addin that you may like: http://www.xldynamic.com/source/xld.....Download.html Patty wrote: Is there a way to have more than 3 conditional statements (excel 2003). I need to add another one but I'm not sure how to do it. Here's what I have right now: Columns("P:Q").Select Selection.FormatConditions.Delete Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlBetween, _ Formula1:="=""10%Late - 10%Ahead""", Formula2:="=""10%Under-10%Over""" Selection.FormatConditions(1).Interior.ColorIndex = 4 Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlBetween, _ Formula1:="=""11%-20% Late""", Formula2:="=""11%-20% Over""" Selection.FormatConditions(2).Interior.ColorIndex = 6 Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlBetween, _ Formula1:="=""More than 20% Late""", Formula2:="=""More than 20% Over""" Selection.FormatConditions(3).Interior.ColorIndex = 3 Cells.Select If anyone can help me with this, that would be great! -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thanks!
"Dave Peterson" wrote: Nope. xl2003 only supports 3 of those conditional formatting rules--just like you see in the user interface. (xl2007 has lots more, fyi.) Bob Phillips has an addin that you may like: http://www.xldynamic.com/source/xld.....Download.html Patty wrote: Is there a way to have more than 3 conditional statements (excel 2003). I need to add another one but I'm not sure how to do it. Here's what I have right now: Columns("P:Q").Select Selection.FormatConditions.Delete Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlBetween, _ Formula1:="=""10%Late - 10%Ahead""", Formula2:="=""10%Under-10%Over""" Selection.FormatConditions(1).Interior.ColorIndex = 4 Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlBetween, _ Formula1:="=""11%-20% Late""", Formula2:="=""11%-20% Over""" Selection.FormatConditions(2).Interior.ColorIndex = 6 Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlBetween, _ Formula1:="=""More than 20% Late""", Formula2:="=""More than 20% Over""" Selection.FormatConditions(3).Interior.ColorIndex = 3 Cells.Select If anyone can help me with this, that would be great! -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I convert conditional formatting into explicit formatting? | Excel Discussion (Misc queries) | |||
Protect Cell Formatting including Conditional Formatting | Excel Discussion (Misc queries) | |||
conditional Formatting based on cell formatting | Excel Worksheet Functions | |||
conditional Formatting based on cell formatting | Excel Worksheet Functions | |||
Conditional Formatting that will display conditional data | Excel Worksheet Functions |