+ Reply to Thread
Results 1 to 4 of 4

One VLOOKUP to return all data - is this even possible?

  1. #1
    Registered User
    Join Date
    11-23-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    38

    Question One VLOOKUP to return all data - is this even possible?

    Hi folks:

    I have a workbook with 2 worksheets: "Name" and "Record" that share a common key, which is the "ID" number of the student.

    I want to be able to perform a Vlookup on the "ID" field in the "Record" worksheet against the "Name" worksheet.

    Objective: Perform a SINGLE Vlookup (on the ID field) and return the values in the 4 columns from the "Record" worksheet and populate it into the "Name" worksheet. I don't want to have 4 separate Vlookups for each column in the "Record" worksheet to get the 4 separate data values - so just one Vlookup on ID field returning and populating the data into their respective columns in "Record" sheet.

    I've attached the worksheet here

    As well here's the layout:

    "Name" worksheet:

    Col A = Student ID
    Col B= Name
    Col C = 2010
    Col D = 2011
    Col E = 2012
    Col F = 2013

    "Record" worksheet is the same as "Name" but only has data in Student ID


    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: One VLOOKUP to return all data - is this even possible?

    On the " record sheet" row 2 sellect range B2: E2.

    Enter
    Please Login or Register  to view this content.
    in the formula bar and commit with Ctrl+Shift+Enter

    Pull down as needed

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,625

    Re: One VLOOKUP to return all data - is this even possible?

    Try this array formula in B2 of "Record" sheet and drag across.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-23-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: One VLOOKUP to return all data - is this even possible?

    Thanks Pepe - worked like a charm! Appreciate it much

    Hmmm, I wonder how I'd program this in VBA. Maybe I should repost in VBA section <ponders>

+ 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: 9
    Last Post: 11-26-2012, 12:46 AM
  2. vlookup and return data from another column
    By alie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2010, 06:57 AM
  3. Need to return data in excel (not vlookup!?)
    By superdan1987 in forum Excel General
    Replies: 4
    Last Post: 03-16-2010, 06:33 AM
  4. Vlookup to Return a Range of Data
    By james in forum Excel General
    Replies: 0
    Last Post: 07-13-2006, 04:50 PM
  5. Vlookup to Return a Range of Data
    By Rob in forum Excel General
    Replies: 13
    Last Post: 05-31-2006, 11:10 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