Conditional formatting with a macro

D

Diana Morrison

I have a worksheet (Summary) that pulls information from another worksheet
(Manager).

I want to run a macro from the Manager worksheet, that first looks at every
number in column A, and tries to find it in column A of the Summary
worksheet. If the number isn’t there, I want it to go back to the Manager
worksheet and colour the cell red.

Is this possible?

Thanks,
Diana Morrison
 
S

Stefi

You don't need a macro for it!

Create a named range of column A of the Summary worksheet, say SummaryAcol,
and add conditional formatting to column A of Manager worksheet with this
formula:

=AND(NOT(ISBLANK(A1)),ISERROR(MATCH(A1,SummaryAcol,0)))

Regards,
Stefi

„Diana Morrison†ezt írta:
 
D

Diana Morrison

Thanks, I'll give it a go!

Stefi said:
You don't need a macro for it!

Create a named range of column A of the Summary worksheet, say SummaryAcol,
and add conditional formatting to column A of Manager worksheet with this
formula:

=AND(NOT(ISBLANK(A1)),ISERROR(MATCH(A1,SummaryAcol,0)))

Regards,
Stefi

„Diana Morrison†ezt írta:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top