Conditional formatting for multiple numbers

Mitch21

New Member
Joined
May 2, 2018
Messages
14
I want to highlight certain numbers in the list below.

Here are the numbers I care most about:
0, 15, 20, 25, 30, 40, 45, 60, 75, 80, 90

My preference would be to highlight any number not listed above in red.

Another option would be to highlight any number that IS on the list above in green.

How can I write a conditional formatting formula for this?

Thanks!


0
15
17
20
26
25
55
30
40
45
88
60
75
80
105
156
90
111
200
115

<tbody>
</tbody>
 
OK, those seem like valid numbers. Perhaps you are not setting up the Conditional Formatting properly.

Try it again, using these steps:
1. Select the entire range that you want to apply this to.
2. Go to Conditional Formatting, select New Rule, and select the "Use a formula to determine which cells to format" option
3. Enter the formula as it applies to the very first cell in your selection. This part is very important! The ranges used in your formula must correspond to the first cell in your selection. Excel is smart enough to adjust it for the rest. So, if you select cells A2:A100, then your formula should reference cell A2.
4. Choose your Formatting option (color cell or text).
5. Click OK.

I see people mess up step 3 quite often. They will select the entire column A, but then write the formula referencing A2 instead of A1, because A1 contains headers.
The formula MUST correspond to the first cell in your selection.


This worked very well, thank you. Not sure exactly what I was doing wrong before, but this fixed it. Thanks so much!
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Sounds like the actual implementation was the likely problem with my suggestion too then. :)
 
Upvote 0

Forum statistics

Threads
1,215,420
Messages
6,124,800
Members
449,189
Latest member
kristinh

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