How to highlight some entries in one Worksheet based on string match value on the other worksheet ?


I've got a list of Windows Update entries in one worksheet called "Patches to be applied" and another list of bad patches called "bad patches" worksheet.

So now can someone please assist me how to make the entries in "Patches to be applied" worksheets highlighted in red colur when there is a KB number matched in "bad patches" worksheet ?

See the attached Excel Spreadsheet.

LVL 11
Senior IT System EngineerIT ProfessionalAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Select the range A1:A123 on the sheet Patches to be applied and make a New Rule for Conditional Formatting using the formula given below and set the format as per your choice.
In the attached file, I have set the conditional formatting to highlight the cells with Red Fill and Bold and White Font.

=OR(ISNUMBER(SEARCH('Bad Patches'!$A$1:$A$38,A1)))

See if this helps.
Senior IT System EngineerIT ProfessionalAuthor Commented:

Thanks for the quick reply.

However, when I added new entry in the last line of 'Bad Patches' worksheet, it didn't highlight the entry in the "Patches to be applied" worksheet ?
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Well in that case you may change the formula used in conditional formatting to this.....

=SUMPRODUCT(('Bad Patches'!$A$1:$A$300<>"")*(ISNUMBER(SEARCH('Bad Patches'!$A$1:$A$300,A1))))>0

The above formula includes the range 'Bad Patches'!$A$1:$A$300 in it so that up to row 300 on Bad Patches Sheet, if you add another number, the conditional formatting on sheet1 will be automatically updated. Of course you may increase the referenced range as per your requirement.

Does this work now?

For details, see the attached.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Senior IT System EngineerIT ProfessionalAuthor Commented:
You are amazing mate !
thanks this is just what I want.

Now I learn something new.
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome. Glad I could help. :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.