Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Julian Campbell
 
Posts: n/a
Default conditional format

I can colour cells with conditional format with basic yes/no for example.
But how do I enter say 4 or 5 variants into a conditional format

Thanks


  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
see your other post

--
Regards
Frank Kabel
Frankfurt, Germany

Julian Campbell wrote:
I can colour cells with conditional format with basic yes/no for
example. But how do I enter say 4 or 5 variants into a conditional
format
Thanks



  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

Julian

Use VBA or see John MCGimpsey's site for instructions on getting 6 CF for a
cell.

Note: John's work-around is for numerics only.

Looks like you want CF for text, so VBA would be the way to go.

Sample worksheet event code.............

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("A:A"))
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


Gord Dibben Excel MVP

On Wed, 15 Dec 2004 22:55:00 +0000 (UTC), "Julian Campbell"
wrote:

I can colour cells with conditional format with basic yes/no for example.
But how do I enter say 4 or 5 variants into a conditional format

Thanks


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
copy conditional format as ACTUAL format Dana Zulager Excel Discussion (Misc queries) 7 December 7th 04 11:02 PM
make a conditional format the default Fred Evans Excel Discussion (Misc queries) 3 December 6th 04 05:01 AM
Conditional format rexmann Excel Discussion (Misc queries) 4 December 2nd 04 12:01 PM
Copying a conditional format Meaux Excel Worksheet Functions 2 November 29th 04 10:19 AM
Conditional Format With SUMIF Minitman Excel Worksheet Functions 3 November 1st 04 02:58 PM


All times are GMT +1. The time now is 10:11 PM.

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"