+ Reply to Thread
Results 1 to 6 of 6

Match ID Numbers Found in Col on 2nd Worksheet to IDs on 1st Wksht and Mark Somehow

  1. #1
    Registered User
    Join Date
    09-24-2021
    Location
    California
    MS-Off Ver
    Excell:Mac 2011
    Posts
    5

    Question Match ID Numbers Found in Col on 2nd Worksheet to IDs on 1st Wksht and Mark Somehow

    Hi, trying to figure out what I believe is a VLOOKUP formula that is just a bit over my head. I've attached a sample file here to use as an example.

    I have an email list of about 2,500 rows or so on a worksheet labeled MASTER. One column (B) lists a 6-digit ID number for each user. There are cases where more than 1 user/row may include the same ID number.

    Then, in a second worksheet labeled SELECTS I have about 500 or so rows that list the ID Numbers that I need to filter out of the MASTER list somehow. So this worksheet also has a column for ID numbers (D).

    - I need to know the formula that would find all of the IDs on Worksheet 2 (SELECTS) that match the IDs on Worksheet 1 (MASTER) and then put a mark of some sort in a column on the MASTER worksheet that I'll call 'MATCH' (E). If the mark in the MATCH column could be the ID number, that might work OK. But even if it's just an 'X' or something, I can make do and sort/find/replace.

    - In cases where an ID in the SELECTS worksheet cannot be found in the MASTER, I'll need to put some sort of mark so I know to add those manually later. That could be in a separate column in SELECTS labeled 'UNMATCHED' (H) or something.

    - If there are multiple instances of the same ID in the MASTER list, I'll need all that match a value in SELECTS to be marked.

    - Super Bonus: There are a few cases in the MASTER list where there are multiple comma-delimited IDs listed (e.g, 12240,12250,12260) instead of just a single value. If the formula could match these if the ID in SELECTS was at least one of those listed numbers, that would be ideal. If too complex, theres few enough that I could do those manually.


    THANKS IN ADVANCE FOR ANY DIRECTION HERE!
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Match ID Numbers Found in Col on 2nd Worksheet to IDs on 1st Wksht and Mark Somehow

    On Master,
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    On Selects,
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    09-24-2021
    Location
    California
    MS-Off Ver
    Excell:Mac 2011
    Posts
    5

    Thumbs up Re: Match ID Numbers Found in Col on 2nd Worksheet to IDs on 1st Wksht and Mark Somehow

    Wow, fantastic. That does appear to work and is a different approach than I might have looked into. Seems simple enough.

    I also found this VLOOKUP formula for if/when I want the actual ID values in the column, instead of just an 'X' or something.

    Please Login or Register  to view this content.

    UNFORTUNATELY, and probably as expected, neither of these formulas matches the rows that have multiple IDs in the ID number column (e.g, "14207, 14212, 14260").
    In a BEST CASE scenario, the formula(s) would match if it any of the IDs in the comma-delimited cell matched an ID from the source. While there are only about a dozen or so of these rows total, it still takes much longer than expected to manually try to see if there are any matches.

    - Any ideas how to modify either of these formulas to match if any one or more of the 5-digit IDs listed in a single cell would match the source?

    It would still need to be a perfect match of one of the complete 5-digit ID numbers, not a partial match of some of the numbers in an ID.

    THANKS AGAIN!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Match ID Numbers Found in Col on 2nd Worksheet to IDs on 1st Wksht and Mark Somehow

    You're welcome.

    I also found this VLOOKUP formula for if/when I want the actual ID values in the column, instead of just an 'X' or something.
    What would be the point of that? You already know that … it's what you’re searching for.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Match ID Numbers Found in Col on 2nd Worksheet to IDs on 1st Wksht and Mark Somehow

    Maybe:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    would get the simple examples and the first of multiples.

    Or, you might need
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Match ID Numbers Found in Col on 2nd Worksheet to IDs on 1st Wksht and Mark Somehow

    You don't actually give an example of multiple entries and the possible outcomes. If one out of three "matches", is that a MATCH? Or do they all need to match? Do you want multiple returns, like MxM?

    Sure it could be done using MID and RIGHT to extract the elements but the outcomes are complex.

+ 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] Deleting a row when a value match is found in another worksheet
    By MattEvansC3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2020, 10:41 AM
  2. [SOLVED] Mark Cells if Match found in Sheet2
    By Andrew.Trevayne in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-27-2018, 02:26 AM
  3. Show worksheet name on match found
    By veloci in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2014, 08:21 PM
  4. Replies: 0
    Last Post: 02-05-2013, 12:28 PM
  5. Copy data from worksheet 2 to worksheet 1 if match found
    By TSSRob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2011, 07:54 PM
  6. copy text strings form multiple wksht to single wksht
    By Richard.Alcantar in forum Excel General
    Replies: 1
    Last Post: 12-09-2008, 01:50 PM
  7. Replies: 1
    Last Post: 03-10-2007, 10:20 PM

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