+ Reply to Thread
Results 1 to 3 of 3

VLookup none unique data

  1. #1
    Registered User
    Join Date
    04-09-2020
    Location
    Liverpool
    MS-Off Ver
    365
    Posts
    4

    VLookup none unique data

    Hi

    I have a list of reference numbers and need to display all data which relates to this reference. The data set set looks like this

    Sheet 1

    References:
    1
    2
    3
    4
    5

    Sheet 2

    References: Name:
    1
    1
    2
    2
    2
    3
    3
    3
    3
    4
    4

    so I need to link all of the references in sheet 1 and able to display the corresponding data in sheet 2,column 2.

    i have only ever done a VLOOKUP against a unique field rather than fields with duplicating data.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: VLookup none unique data

    I have assumed that your values as shown start in cell A1 of each sheet.

    Try an array formula like, entered using Ctrl-Shift-Enter into cell B2 of Sheet1, then copy it to the right until it returns blanks. Then copy B2:??2 down to match your list.

    =IFERROR(INDEX(Sheet2!$B:$B,SMALL(IF(Sheet2!$A$1:$A$1000=$A2,ROW($A$1:$A$1000)),COLUMN(A1))),"")
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    04-09-2020
    Location
    Liverpool
    MS-Off Ver
    365
    Posts
    4

    Re: VLookup none unique data

    Perfect, I owe you one, thanks!

+ 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. Replies: 6
    Last Post: 09-07-2017, 09:48 AM
  2. VLOOKUP / INDEX Against Multiple Tables with unique Data by Date
    By Tom_Ra in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-13-2016, 08:47 AM
  3. Replies: 5
    Last Post: 06-22-2015, 03:00 PM
  4. Replies: 1
    Last Post: 06-22-2015, 01:32 PM
  5. Replies: 1
    Last Post: 01-29-2015, 04:08 PM
  6. Replies: 6
    Last Post: 06-14-2011, 07:18 AM
  7. Macro to copy unique items, do sumif, vlookup, subtraction and then save data
    By excelaspire0219 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2009, 03:56 PM

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