Hi mtfitzgerald,
I think this should suit your needs, but it required the use of VBA. I saw it on another bulletin board some time ago and thought it was a great solution - thanks to Ortizmro.
Conditional Formatting – More than three arguments?
colin110 asked this question on 9/29/2001:
Conditional formatting allows three arguments.
Can anyone advise how to increase this to six (for example) arguments?
Or is there a work around that can utilise a Macro to format figures between certain ranges in a similar way to Conditional Formatting?
Cordial regards,
Colin
ortizmro gave this response on 9/29/2001:
Yes, VBA can be used to perform the same function as conditional formatting.
If you open the VBA editor (Alt + F11) and copy/insert this code:
Sub Aut

pen()
Application.Calculation = xlAutomatic
Worksheets("Sheet1"

.OnCalculate = "CheckCells"
End Sub
Sub CheckCells()
Set RangeToFormat = Sheets("Sheet1"

.Range("B7:F17"

For Each cell In RangeToFormat
With cell
' Empty cells
If IsEmpty(cell) Then
.Interior.ColorIndex = xlNone
' Numeric cells
ElseIf IsNumeric(cell.Value) Then
Select Case cell.Value
Case Is < 0
.Interior.Color = vbGreen
Case 0
.Interior.Color = vbYellow
Case Is > 0
.Interior.Color = vbMagenta
End Select
' Error cells
ElseIf IsError(cell.Value) Then 'Error cells
.Interior.Color = vbRed
' Other cells (text)
Else
.Interior.ColorIndex = xlNone
End If
End With
Next cell
End Sub
· You need to change the cell reference as needed (currently set to operate on cells B7:F17).
· You need to put a "dummy function" somewhere in the sheet to cause this to execute. Put something like =SUM(B7:F17) in some obscure cell.
· Then save the file, reopen it, and it should work.
Change and/or add Case statements as needed. For help on format of Case statements, place the pointer over the word Case (in the VBA editor) and hit the F1 key.
MRO
colin110 rated this answer:
Fantastic response, Ortizmro.
Many thanks indeed!
Colin
Good Luck!
Peter Moran
Two heads are always better than one!!