Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default more than 3 conditional formats per cell

Is it possible to have more than 3 conditional formats per cell. I am
creating a chart which I would like the cells to change color dependant on
the letter inserted.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default more than 3 conditional formats per cell

Nigel

You could download CFPlus add-in from Bob Phillips' site...............allows up
to 30 choices.

http://www.xldynamic.com/source/xld.....Download.html

Or stick this in your sheet module

Option Compare Text
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Num As Long
Dim rng As Range
Dim vRngInput As Variant
Set vRngInput = Intersect(Target, Range("D:D"))
If vRngInput Is Nothing Then Exit Sub
On Error GoTo endit
Application.EnableEvents = False
For Each rng In vRngInput
'Determine the color
Select Case rng.Value
Case Is = "A": Num = 10 'green
Case Is = "B": Num = 1 'black
Case Is = "C": Num = 5 'blue
Case Is = "D": Num = 7 'magenta
Case Is = "E": Num = 46 'orange
Case Is = "F": Num = 3 'red
End Select
'Apply the color
rng.Interior.ColorIndex = Num
Next rng
endit:
Application.EnableEvents = True
End Sub

This is sheet event code. Right-click on the sheet tab and "View Code"

Copy/paste the above into that module.


Gord Dibben MS Excel MVP


On Wed, 20 Dec 2006 12:50:01 -0800, nigelb
wrote:

Is it possible to have more than 3 conditional formats per cell. I am
creating a chart which I would like the cells to change color dependant on
the letter inserted.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default more than 3 conditional formats per cell

It's not possible with the built in conditional formatting tool, unless
you're using XL 2007.

Dave
--
Brevity is the soul of wit.


"nigelb" wrote:

Is it possible to have more than 3 conditional formats per cell. I am
creating a chart which I would like the cells to change color dependant on
the letter inserted.

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
Why can't I use more than 3 conditional formats per cell? Jillian R Excel Worksheet Functions 1 October 16th 06 06:53 PM
is there any way to have more than 3 conditional formats per cell Greg L Excel Discussion (Misc queries) 8 September 19th 06 12:51 AM
Help with this conditional IF statement C-Dawg Excel Discussion (Misc queries) 3 May 15th 06 06:01 PM
conditional cell format based on cell in same row, previous column tamiluchi Excel Worksheet Functions 7 May 3rd 06 04:11 PM
Deferring conditional formatting? Pheasant Plucker® Excel Discussion (Misc queries) 14 March 17th 06 08:17 PM


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