Colour Cell When Alternative Is Found

Dazzawm

Well-known Member
Joined
Jan 24, 2011
Messages
3,748
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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,215,135
Messages
6,123,239
Members
449,093
Latest member
Vincent Khandagale

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