View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default Conditional Formatting: Adding more then 3

If the data are numbers see John McGimpsey's site for a method to get up to 6
conditions.

http://www.mcgimpsey.com/excel/conditional6.html

Or Bob Phillips' CFPlus add-in will do up to 30

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

Or upgrade to Excel 2007

Or use sheet event code.

Private Sub Worksheet_Change(ByVal Target As Range)
Set r = Range("C4:IR30") 'edit to suit
If Intersect(Target, r) Is Nothing Then
Exit Sub
End If
vals = Array("C", "D", "G", "H", "K", "L", "O", "S", "C", "X") 'edit to suit
nums = Array(8, 9, 6, 3, 7, 4, 20, 10, 8, 15) 'edit to suit
For Each rr In r
icolor = 0
For I = LBound(vals) To UBound(vals)
If UCase(rr.Value) = vals(I) Then
icolor = nums(I)
End If
Next
If icolor 0 Then
rr.Interior.ColorIndex = icolor
End If
Next
End Sub


Gord Dibben MS Excel MVP


On Wed, 16 Jul 2008 11:43:00 -0700, davednconfused
wrote:

Hi All,

Is there a way to add more then 3 conditional formatting criteria? I'd like
to add a forth or fifth.