+ Reply to Thread
Results 1 to 10 of 10

Highlight data with vlookup

  1. #1
    Registered User
    Join Date
    09-30-2019
    Location
    Honduras
    MS-Off Ver
    mac office 15.31
    Posts
    21

    Question Highlight data with vlookup

    I have 3 sheets in an excel file.

    Sheet1: All products and their important data, including name and unique identifier, but also sales data.
    Sheet2: List of 106 item unique identifiers George wants to order.
    Sheet3: List of 75 item unique identifiers Mars wants to order.

    How do I highlight the 106 item identifiers (from Sheet2) in one color, say yellow, in Sheet 1 AND at the same time highlight the 75 item identifiers (from Sheet3) also in Sheet1?

    Im thinking some combination of vlookup and conditional formatting?

    Thanks in advance.

    Mars

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Highlight data with vlookup

    1. Please see the yellow banner at the top of the page on attaching a sample.
    2. I think your profile for Version is the release number. Let us know what VERSION it is (like V2010, V2019, MS365, etc.)

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Highlight data with vlookup

    You would need 1 rule for each condition, and yes, you would been CF and probably vlookup or match
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    09-30-2019
    Location
    Honduras
    MS-Off Ver
    mac office 15.31
    Posts
    21

    Re: Highlight data with vlookup

    Yes sorry, I was working on the sample file and got sidetracked. Here it is.

    As mentioned, Sheet1-Data contains the unique id and some sales data.

    The next sheet, List1, contains some unique IDs George wants to order.

    The last sheet, Top-75, contains some other unique IDs I want to order.

    What I need is to highlight George's IDs and my IDs in the first Sheet1-Data, so I can easily visualize:

    1. Which IDs George wants
    2. Which IDs I want
    3. Which IDs are left out completely from both lists

    Thanks
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Highlight data with vlookup

    You haven't updated your true Excel version yet, but for conditional formatting, try these:

    Highlight those under List1:
    =ISNUMBER(MATCH($A2,List1!$A$2:$A$107,0))

    Highlight those under TOP-75:
    =ISNUMBER(MATCH($A2,'TOP-75'!$A$1:$A$74,0))

    Highlight those that are in both:
    =AND(ISNUMBER(MATCH($A2,'TOP-75'!$A$1:$A$74,0)),ISNUMBER(MATCH($A2,List1!$A$2:$A$107,0)))

    For each of these, under "applies to", put:
    =$A$2:$A$8
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-30-2019
    Location
    Honduras
    MS-Off Ver
    mac office 15.31
    Posts
    21

    Re: Highlight data with vlookup

    Oh ok i see what you did...awesome! Im gonna tweak it a bit but it works great.

    thanks so much!

  7. #7
    Registered User
    Join Date
    09-30-2019
    Location
    Honduras
    MS-Off Ver
    mac office 15.31
    Posts
    21

    Re: Highlight data with vlookup

    ok i tried them but they dont highlight the correct data.

    With the rule for both lists I get items such as these highlighted:

    770186 - doesnt appear in either list
    751054 - only in TOP-75
    751056 - appears in both

    your rule:
    =AND(ISNUMBER(MATCH($A2,'TOP-75'!$A$1:$A$74,0)),ISNUMBER(MATCH($A2,List1!$A$2:$A$107,0)))

    my rule:
    =AND(ISNUMBER(MATCH($A2,'TOP-75'!$A$1:$A$74,0)),ISNUMBER(MATCH($A2,List1!$A$2:$A$107,0)))

    your file:
    has the Conditional Formatting applies to A2-A8 (image attached)

    my file:
    hast the Conditional Formatting applies to A2-A1013 (image attached)

    So they look identical to me, the sheets are named the same.

    Im trying to upload the file but I cannot because its 1.21MB which exceeds the 1MB limit.
    Last edited by marciokoko; 07-24-2022 at 03:47 PM. Reason: attaching zip file

  8. #8
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Highlight data with vlookup

    You're off by 1 in your formula. You have A3 instead of A2

  9. #9
    Registered User
    Join Date
    09-30-2019
    Location
    Honduras
    MS-Off Ver
    mac office 15.31
    Posts
    21

    Re: Highlight data with vlookup

    Thanks, fixed it.

    Ok so now the only other thing I would add would be to identify the items in TOP-75 that are in List1. So if i understood your formulas correctly, it should be:

    =ISNUMBER(MATCH($A1,List1!$A2:$A107,0))

    Got it! So now its more a matter of logic that I need to fix in my head before going on.

    The long data sheet is all the catalog products available in a company. The List1 sheet is what the purchasing manager wants to purchase.
    And the TOP-75 sheet are the identified items in the entire catalog which have the most consistent sales on a monthly basis out of all 1119
    products in the catalog.

    STEP1:
    So the first conditional format which marks the items in the catalog that appear in both List1 & TOP-75, is a way to draw attention to the
    items in the catalog that the manager must further analyze in order to determine how much of those items to purchase.

    STEP2:
    The second conditional I just added based on your formulas alerts the manager to which items from the TOP-75 list, which is the list of
    items that should almost always be ordered since they are the best-selling items, are being ordered and so the other TOP-75 items which
    are not highlighted must be further analyzed in order to determine which TOP-75 may have been overlooked by her List1.

    In this step it would be helpful for me to add a way to quickly count and identify or group those items. So for example in this file,
    17 of the TOP-75 items are marked in red. This means the manager must go analyze the 17 but then also the manager must look at the other
    58 items to see why they weren't included in List1. Is there a way to take that list and group all marked and non-marked items?

    I tried selecting the column and clicking on Filter which adds the little dropdown to A1, and I click that to set a filter to Color > Rose
    it does work but for some reason leaves A1 where it is, which happens to be a non-rose marked cell, then all the rose marked cells, and then
    the remaining non-rose marked cells. It is a small thing, but im wondering why it leaves that first A1 cell out of sorts?

    STEP3:
    The final step seems to me like it would be to look at all other items in the catalog which were not identified as TOP-75 or as List1, which
    may present a need for ordering which List1 and TOP-75 missed. This would be the case of the manager reviewing the original full 1119 item
    list and identifying an item such as A99, A101, A104 and others even like A483 and A487. The manager would use some other column in the
    dataset to identify that item as important and present it as an option. Eventually those might even be items that appear in TOP-75 but
    that hadn't been marked as required in List1.

    I know this is not precisely an Excel question but I think its gotta be a common question from purchase managers, how to take items in their
    catalog and cross reference them to items they are presented by Sales for example as potential re-order candidates and then purchasing
    analyzes those items further.
    Attached Files Attached Files
    Last edited by marciokoko; 07-24-2022 at 07:40 PM. Reason: added file

  10. #10
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Highlight data with vlookup

    I tried selecting the column and clicking on Filter which adds the little dropdown to A1, and I click that to set a filter to Color > Rose
    it does work but for some reason leaves A1 where it is,
    Insert a row at the top to create a header - call it "Unique ID" or something. Then apply the filter.

    I would also think about putting these lists in Excel Tables. They are so much better to use.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Highlight value found from vlookup
    By Eduards in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-20-2019, 10:28 AM
  2. [SOLVED] How to highlight cell ERROR MSG with if(isna) with vlookup
    By fluffyvampirekitten in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-29-2015, 10:49 PM
  3. vlookup in conditional formatting to to highlight percentage Ranges
    By Sd100 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-23-2013, 09:19 PM
  4. vlookup command to highlight cell in table
    By lochdara in forum Excel General
    Replies: 8
    Last Post: 03-03-2012, 09:43 PM
  5. Vlookup Highlight
    By raihaan9 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2012, 09:33 AM
  6. vlookup and row highlight in vba
    By chernab0g in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2009, 07:08 PM
  7. Match,VlookUp & Highlight
    By seanyeap in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-19-2009, 04:10 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1