+ Reply to Thread
Results 1 to 4 of 4

Advanced VLOOKUP/MATCH/HLOOKUP Formula

  1. #1
    Forum Contributor
    Join Date
    10-09-2015
    Location
    Canada
    MS-Off Ver
    Office Home and Student 2021 for Mac
    Posts
    170

    Advanced VLOOKUP/MATCH/HLOOKUP Formula

    Hi all,

    I am wondering if there is a formula that would be able to take the cells that are populated in the first sheet and copy them into the blank cells that are in the sheet2. However I would like to know if there is a quick way to copy the responses from q1 to q5 in sheet1 and match it to the location of q1 to q5 in sheet2 (a little tricky as the questions in sheet two are spaced differently from those in sheet1).

    I have attached an example spreadsheet of what the data look like.

    Any suggestions are greatly appreciated.


    Thank you!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: Advanced VLOOKUP/MATCH/HLOOKUP Formula

    I think you are asking for a vlookup formula.

    Cell B2: =VLOOKUP($A2,Sheet1!$A$2:$F$9,2,FALSE)
    Cell F2: =VLOOKUP($A2,Sheet1!$A$2:$F$9,3,FALSE)
    Cell J2: =VLOOKUP($A2,Sheet1!$A$2:$F$9,4,FALSE)
    Cell N2: =VLOOKUP($A2,Sheet1!$A$2:$F$9,5,FALSE)
    Cell R2: =VLOOKUP($A2,Sheet1!$A$2:$F$9,6,FALSE)

    and then copy cells B-R down as necessary

  3. #3
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Advanced VLOOKUP/MATCH/HLOOKUP Formula

    If you actually have more than 5 questions, the following formula will work on as many columns as you want without needing to adjust each time:

    =INDEX(Sheet1!$A:$ZZ,MATCH(Sheet2!$A2,Sheet1!$A:$A,0),MATCH(Sheet2!B$1,Sheet1!$1:$1,0))

    The only issue would be you might need to change the 'ZZ' in the formula to expand it if you had more than 50 questions

  4. #4
    Forum Contributor
    Join Date
    10-09-2015
    Location
    Canada
    MS-Off Ver
    Office Home and Student 2021 for Mac
    Posts
    170

    Re: Advanced VLOOKUP/MATCH/HLOOKUP Formula

    Amazing, this worked so well. Thanks brokenbiscuits!

+ 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] Vlookup / Hlookup / Match / Offset?
    By Branbran10 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-29-2015, 08:27 AM
  2. Index, Match, Vlookup, Hlookup or what?
    By ovgarcia24 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-22-2014, 07:07 PM
  3. [SOLVED] VLookup/HLookup & MATCH?
    By PvtJoker in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-07-2013, 03:20 PM
  4. Vlookup, HLookup, Index, Match, oh my! Help me.
    By ryanl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2013, 09:29 PM
  5. Vlookup/hlookup/match/index?
    By margggggg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-28-2012, 07:46 PM
  6. [SOLVED] Vlookup & Hlookup at same time - Why is this Index+Match formula not working
    By fabrice.usa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2012, 06:46 PM
  7. Hlookup and Vlookup Combined (Match?)
    By batman1056 in forum Excel General
    Replies: 3
    Last Post: 06-21-2010, 04:33 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