Share via

CONDITIONAL FORMATTING ROWS with VLOOKUP RANGE

Anonymous
2018-05-02T13:43:49+00:00

Hello,

I have 26 customers listed in a separate sheet of an Excel file, labled 'ATP Customers' .  I would like to highlight rows of data they are listed in on another sheet in the same Excel File, labled 'Current'.  The row formatting depends on a match from the CUSTOMER NAME from 'ATP Customers' in column A to a CUstomer column (AA) in the 'Current' sheet and also if there is an "ATP" code in column AE of 'Current'.

How can I highlight rows of data using a VLOOKUP/ AND statement?

For example: if AA:AA [Current] = A:A [ATP Customers] and AE:AE="ATP" then highlight that row in yellow.

Please help,

Thanks in advance.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2018-05-02T15:40:05+00:00

    I'm sorry, what I meant is how can I highlight rows, based off of just the customer list on the Customer sheet.  No other conditions apply.

    Was this answer helpful?

    0 comments No comments
  2. HansV 462.6K Reputation points
    2018-05-02T15:37:43+00:00

    Similar as above, but with

    =AND(ISNUMBER(MATCH($AA2,'ATP Customers!$A:$A,0)),$AE2<>"ATP")

    and another highlight color.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2018-05-02T14:25:52+00:00

    Thank You!

    Can you also help me figure out how to format the rows (starting in row 2) with matching only the list of Customers from the ATP Customers tab, without the 'ATP' condition?

    Was this answer helpful?

    0 comments No comments
  4. HansV 462.6K Reputation points
    2018-05-02T14:19:04+00:00

    Select the entire range that you want to format conditionally. I will assume that it starts in row 2.

    On the Home tab of the ribbon, click Conditional Formatting > New Rule...

    Select 'Use a formula to determine which cells to format'.

    Enter the formula

    =AND(ISNUMBER(MATCH($AA2,'ATP Customers!$A:$A,0)),$AE2="ATP")

    Click Format...

    Activate the Fill tab.

    Select yellow as fill color.

    Click OK, then click OK again.

    Was this answer helpful?

    0 comments No comments