A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
You can imitate more than 3 conditional formatting rules in Excel 2003 by mimicking the CF behavior with a Worksheet_Change macro event. Right-click the name tab of the worksheet and choose View Code. When the VBE opens, paste the following into the pane titles something like Book1 - Sheet1 (Code),
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Me.Columns(2)) Is Nothing Then
On Error GoTo FallThrough
Application.EnableEvents = False
Dim b As Range
For Each b In Intersect(Target, Me.Columns(2))
Select Case b.Value
Case (-1)
b.Offset(0, -1).Interior.ColorIndex = 9
b.Offset(0, -1).Font.ColorIndex = 2
Case 3
b.Offset(0, -1).Interior.ColorIndex = 5
b.Offset(0, -1).Font.ColorIndex = 2
Case 4
b.Offset(0, -1).Interior.ColorIndex = 10
b.Offset(0, -1).Font.ColorIndex = 2
Case 5
b.Offset(0, -1).Interior.ColorIndex = 45
b.Offset(0, -1).Font.ColorIndex = 1
Case 7
b.Offset(0, -1).Interior.ColorIndex = 1
b.Offset(0, -1).Font.ColorIndex = 2
Case Else
'do nothing
b.Offset(0, -1).Interior.Pattern = xlNone
b.Offset(0, -1).Font.ColorIndex = xlAutomatic
End Select
Next b
End If
FallThrough:
Application.EnableEvents = True
End Sub
Edit the integers used for the .ColorIndex colors if you need to (see table below). Tap Alt+Q to return to your worksheet.
Here is an image of an Excel table demonstrating the basic ColorIndex colors: