Conditional Format - More than three

Moxioron

Active Member
Joined
Mar 17, 2008
Messages
436
Office Version
  1. 2019
Hello all.

I am trying to figure out how to apply conditional formatting with more than three conditions.

I need the cell to change color based on the following options

Open
Closed
Re-opened
Pending
Escalated

Is there a formula to accomplish this? Thanks for your help.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hello all.

I am trying to figure out how to apply conditional formatting with more than three conditions.

I need the cell to change color based on the following options

Open
Closed
Re-opened
Pending
Escalated

Is there a formula to accomplish this? Thanks for your help.
Yes. Are you applying this to a single column?

Edit: As Yahya said, you wouldn't be able to do it without code in excel 2003. I think that version only allows up to 3 conditions per cell.
 
Upvote 0
you need to use this code
Code:
Sub CF()
Dim LR As Long, c As Range
LR = Range("A" & Rows.Count).End(xlUp).Row
For Each c In Range("A1:A" & LR)
    Select Case c.Value
        Case "Open"
            c.Interior.ColorIndex = 2
        Case "Closed"
            c.Interior.ColorIndex = 3
        Case "Re-opened"
            c.Interior.ColorIndex = 4
        Case "Pending"
            c.Interior.ColorIndex = 5
        Case "Escalated"
            c.Interior.ColorIndex = 6
        Case Else
            c.Interior.ColorIndex = 7
    End Select
Next c
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,588
Messages
6,179,743
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top