conditional formatting based on a list

jongooligan

Board Regular
Joined
Jul 23, 2007
Messages
90
Got data validation in an input sheet that is based on a list. Turned off the error alert because the users need to sometimes enter values that are not on the list. We need to capture these values and maybe add them to the list if they occur frequently enough.
Is there a way of conditionally formatting these cells based on whether they appear in the list. Must be a non coding solution as this sheet will not be supported when I clear off (which will be soon).
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
The HTML maker doesn't show color of the fonts for conditional formatting but here is an example of conditional formatting showing any name in the input box that isn't in the name box in red. (In my sheet, Frank and Johnathon are both shown in red font to identify them as not in the list.)

Here is the conditional formatting in cell C2:
Formula is COUNTIF($A$2:$A$6,C2)=0 - Then select font formatting of your choice. If the name entered in the input cell is in the table, the count will return 1 or more. If the name entered is not in the table, it will return 0 and show as a different font. (....with what you set up in the conditional formatting settings.)

You could add another column with this type of formula in it and then use filters to view all of the names with a count of 0 and add them that way as well. (I would prefer this method personally but your post asked about conditional formatting.) I added the extra column to my example. (column with green header)
Book1
ABCD
1NamesListInputNamesCount
2BobJudy1
3JudyFrank0
4SamSam1
5TedJohnathon0
6KathyJudy1
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,484
Members
448,967
Latest member
visheshkotha

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