• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Macro for highlighting unmatched records on another sheet

Can you please see the attachment for more info. I need a macro that highlights unmatched records from another sheet.
 

Attachments

  • Unmatched Records.xlsm
    12.3 KB · Views: 3
Hello
In the sheet named "ADJ FORMAT" select the range B10 to P11 then go to Home tab and Conditional Formatting and 'New Rule' >> Select 'Use a formula to determine .....' and type that formula
Code:
=NOT(ISNUMBER(MATCH($P10,CHECK!$D:$D,0)))

Then click 'Format' and do the formatting task as you wish (Fill tab for example and select any desired color) and finally click 'OK'
 
paulcherianc, I see you've created a Check column on both of these sheets. If they're only for this highlighting, you can ditch them and let the conditional format formula handle that with:
Code:
=NOT(ISNUMBER(MATCH($G10 & $B10,CHECK!$B$2:$B$6 & CHECK!$C$2:$C$6,0)))

ps. does it have to be a macro?
 
Hello
In the sheet named "ADJ FORMAT" select the range B10 to P11 then go to Home tab and Conditional Formatting and 'New Rule' >> Select 'Use a formula to determine .....' and type that formula
Code:
=NOT(ISNUMBER(MATCH($P10,CHECK!$D:$D,0)))

Then click 'Format' and do the formatting task as you wish (Fill tab for example and select any desired color) and finally click 'OK'

Hi,

How can I add if "NOT BLANK" to this formula. If P10 is blank conditional format should not work. I have uploaded the sample file.
 

Attachments

  • Unmatched Records.xlsm
    13.2 KB · Views: 3
Last edited:
I'll leave YasserKhalil to answer for his version of the solution.
For mine:
Code:
=NOT(OR(ISNUMBER(MATCH($G10&$B10,CHECK!$B$2:$B$6&CHECK!$C$2:$C$6,0)),ISBLANK(B10)))
 
Back
Top