+ Reply to Thread
Results 1 to 6 of 6

Using VLOOKUP to Search for Multiple Occurrences with same Lookup Value

  1. #1
    Registered User
    Join Date
    04-21-2017
    Location
    United States
    MS-Off Ver
    Excel
    Posts
    35

    Using VLOOKUP to Search for Multiple Occurrences with same Lookup Value

    All,

    Really appreciate your help. I've attached an example for what I'm looking for. I have unique IDs for each person, but there are multiple rows for certain people who obviously will have the same ID. How do I get the lookup values in the VLOOKUP to match up with the 1st, 2nd, 3rd, etc. occurrence. I think I might have to use an index/match function, but I don't really understand how they work. Thanks!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-21-2017
    Location
    United States
    MS-Off Ver
    Excel
    Posts
    35

    Re: Using VLOOKUP to Search for Multiple Occurrences with same Lookup Value

    This post is cross referenced at the following places:

    https://www.excelforum.com/excel-for...ml#post4839535

    https://www.mrexcel.com/forum/excel-...ml#post5005171

    https://www.excelguru.ca/forums/show...e-Lookup-Value

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Using VLOOKUP to Search for Multiple Occurrences with same Lookup Value

    VLOOKUP returns the first value it matches. For multiple returns try this formula in cell B4 and fill down and across to C17.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  4. #4
    Registered User
    Join Date
    04-21-2017
    Location
    United States
    MS-Off Ver
    Excel
    Posts
    35

    Re: Using VLOOKUP to Search for Multiple Occurrences with same Lookup Value

    I'm confused why you would start in row 4? I'm also confused why it would only go down to row 17. Can you tell me the formula how it would work if I was trying to get the desired result in columns F and G? Thank you for your help!

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Using VLOOKUP to Search for Multiple Occurrences with same Lookup Value

    With ID is interger value in column J

    In B4 the drag down:
    Please Login or Register  to view this content.
    C4:
    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Drag C4 down

    F4:
    Please Login or Register  to view this content.
    Also Ctrl-shift-enter
    Drag accross to G4
    Drag both down.
    Quang PT

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Using VLOOKUP to Search for Multiple Occurrences with same Lookup Value

    Quote Originally Posted by rosetc16 View Post
    I'm confused why you would start in row 4? I'm also confused why it would only go down to row 17. Can you tell me the formula how it would work if I was trying to get the desired result in columns F and G? Thank you for your help!
    I read the instructions backwards. My bad.

+ 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] Search for data with multiple occurrences
    By Mackay2m in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-18-2016, 06:16 PM
  2. [SOLVED] lookup and list matches of a ref no with multiple occurrences
    By SKooLZ in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-04-2015, 04:46 PM
  3. Vlookup; lookup cell contains multiple strings to search for
    By jamie1985 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-17-2014, 03:43 AM
  4. [SOLVED] Lookup to find multiple occurrences
    By y_not in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-13-2013, 01:40 PM
  5. String search - multiple occurrences
    By jcountzler in forum Excel General
    Replies: 3
    Last Post: 11-24-2010, 04:12 AM
  6. Replies: 3
    Last Post: 12-10-2009, 06:21 PM
  7. [SOLVED] lookup multiple occurrences of a value excel
    By ckl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-03-2005, 02:06 AM

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