+ Reply to Thread
Results 1 to 6 of 6

Vlookup Multiple Worksheets - Populate multiple columns at same time

  1. #1
    Registered User
    Join Date
    11-14-2018
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    5

    Vlookup Multiple Worksheets - Populate multiple columns at same time

    Hi,

    Is there a vlookup formula that can match and populate multiple columns instead of only by one column when data is across two worksheets? For example, I want to match and populate all columns at the same time in worksheet #1's columns titled, Enrollment, Bld. Capacity and Ward from worksheet #2 using school ID as the unique ID. I have 49 columns I need to match up…but before I copy and paste the vlookup formula into each column and switch the column index number in the formula 48 times, wanted to see if there is an easier way of doing this.

    Thanks for any help!

    Sean

    For Excel Forum_Vlookup.JPG

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Vlookup Multiple Worksheets - Populate multiple columns at same time

    You haven't posted the formula that you are using (or proposing to use), but instead of using a fixed column index in the VLOOKUP function, you can use the function COLUMNS($A:B) instead. This will initially return 2, but as the formula is copied across, then the reference to column B will change, and thus return 3 (for column C), then 4 (for column D), and so on.

    If you wanted to return the columns in a different order (but with the same column headings), then you can use a MATCH function to derive the appropriate column.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    11-14-2018
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    5

    Re: Vlookup Multiple Worksheets - Populate multiple columns at same time

    Thanks Pete! I will try this. Here is the current formula I am using. =VLOOKUP(N2,schoolsupply17,1,FALSE)

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Vlookup Multiple Worksheets - Populate multiple columns at same time

    Well, instead of the 1 as the third parameter of the VLOOKUP, you can change this to a function which returns 1 (but which increments as it is copied across), like this:

    =VLOOKUP($N2,schoolsupply17,COLUMNS($A:A),FALSE)

    Note that I have put a dollar sign before the first N, so that it doesn't change as the formula is copied across.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    11-14-2018
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    5

    Re: Vlookup Multiple Worksheets - Populate multiple columns at same time

    Pete you are a wonderful Man! Works perfect. Thank you! Sean

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Vlookup Multiple Worksheets - Populate multiple columns at same time

    Glad to hear that it works, and thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

+ 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 multiple columns from Multiple Worksheets and copy rows into a Summary Worksheet
    By kljohn01 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-07-2017, 03:46 PM
  2. Array Formula Indexing multiple columns/multiple worksheets
    By cwhite86 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 11-19-2015, 02:19 PM
  3. [SOLVED] AverageIF using multiple criteria in different columns in multiple worksheets
    By trubertiam in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-03-2014, 09:28 PM
  4. Index, Match, and Vlookup across multiple worksheets using multiple entries
    By sajanpatel15 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-23-2013, 08:33 PM
  5. [SOLVED] Populate a cell on multiple Worksheets
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-06-2013, 12:53 PM
  6. Filter for date range across multiple columns and multiple worksheets
    By Pugface in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2011, 05:30 AM
  7. Vlookup against multiple columns/worksheets question
    By JCarter in forum Excel General
    Replies: 8
    Last Post: 03-09-2005, 01:06 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