Colour Cell When Alternative Is Found

Dazzawm

Well-known Member
Joined
Jan 24, 2011
Messages
3,786
Office Version
  1. 365
Platform
  1. Windows
I have sheet 5 with a list of numbers in column A & B. I need a macro please that whenever I write or paste a number in column AE on sheet1 that is on sheet 5 in column A then to colour the cell in AE.

So if I copy or paste NS606292 into column AE on sheet 1 there is a number next to it in column B - CIR25000P so NS606292 needs to be coloured on sheet 1. If I enter a number in AE on sheet 1 and it is not in column A on sheet 5 then don't colour. Hope I have explained ok. Thanks.

NS606292CIR25000P
NS606087CIR8000P
NS617852CR10000S
 
So what's the difference with my Conditional Formatting formula in post #2 ? Have you tried deleting an input in the AE column ? Does the macro behave as you wish ?
Instead, have a try with my CF only and see if it behaves smarter (this would be my level of AI though).
One main difference is I requested a macro and not a formula.
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,224,586
Messages
6,179,729
Members
452,939
Latest member
WCrawford

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