Conditional Formatting BASED on range of cells

investntrade

New Member
Joined
Jul 26, 2017
Messages
11
Office Version
  1. 2016
Hello,

I have a list of dates in a column (say A1:A20)
I have list of holidays in another column (say B1:B10).

I want to highlight the cells of column A, if any of them match column B. In short, I want to highlight all the holidays in my master date list.

Conditional formatting allows formatting only on one single cell. Is there a way I can achieve conditional formatting for the above (i.e. based on a range of cells containing holidays)?

Thanks
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Select A1:A20 & in CF select new rule > use a formula & use
=ISNUMBER(MATCH(A1,B$1:B$10,0))
 
Upvote 0
Try this.
  1. Select A1:A20.
  2. Goto Format>Conditional formatting...
  3. Select Use formula to determine cells to be formatted...
  4. Enter this formula:

    =MATCH(A1, $B1:$B10, 0)​
  5. Set formatting as required.
  6. Press OK.
 
Upvote 0
Thanks @Norie and @Fluff for your prompt responses.
I should have mentioned it earlier that I am using Excel 2010..... I don't see that "Use Formula" option under conditional formatting.......have explored all available options under "Conditional Formatting"

Looks like it is not supported in that older version? Or may I missing something. ❓
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0
Oops, forgot the New Rule... bit - suppose that's kind of important.:)
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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