Conditional Formatting based on various conditions

gflynn

New Member
Joined
Apr 21, 2002
Messages
5
Help!!!!

I am trying to format a table of info. I have 15 values I have placed into another sheet. I have a column of Data (Column D), if any values in Column D equal one of the values on the other sheet I would like to have the cell grayed. I am stuck as it seems I can only compare conditional formatting for one value.

Thanks.

Gary
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
On 2002-04-22 08:42, gflynn wrote:
Help!!!!

I am trying to format a table of info. I have 15 values I have placed into another sheet. I have a column of Data (Column D), if any values in Column D equal one of the values on the other sheet I would like to have the cell grayed. I am stuck as it seems I can only compare conditional formatting for one value.

Thanks.

Gary

Select all the cells where you entered 15 values, go to the Name Box on the Formula Bar, type ValSet, and hit enter.

Lets say that your data start at row 1 (D1) in D.

Select column D.
Activate Format|Conditional Formatting.
Select Formula Is for Condition 1.
Enter as formula:

=COUNTIF(ValSet,$D1)>0

Activate Format.

Select the color of interest on the Patterns tab.
Click OK, OK.
 
Upvote 0

Forum statistics

Threads
1,214,632
Messages
6,120,655
Members
448,975
Latest member
sweeberry

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