+ Reply to Thread
Results 1 to 7 of 7

Vlookup and return values along a Row

  1. #1
    Registered User
    Join Date
    09-19-2012
    Location
    Here There Everywhere
    MS-Off Ver
    Excel 2010
    Posts
    13

    Vlookup and return values along a Row

    Hi i touched on this in another thread ... but was told to make a new one so here goes
    I will upload a test file to illustrate

    I have monthly revenue figures for 2011 and 2012 held on a master file that is updated daily- Every so often i update the figures for each month on my personal spreadsheet using a simple vlookup, using this method i drag the formula across each Month "coloum" and down each row for account numbers individual and then adjust the reference cell at the end of the vlookup ... this is laborious.

    I want a formula that will return the value for coloumn 2 for example but then automatically pick coloum 3 when i drag it to the adjacent cell

    I apologise if this has been explained in a 5 yr olds language

    Test File 2.xlsx

  2. #2
    Registered User
    Join Date
    09-19-2012
    Location
    Here There Everywhere
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Vlookup and return values along a Row

    Oh btw sheet 2 replicates the master file and sheet 2 replicated my file

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Vlookup and return values along a Row

    On B2 of sheet1, put this formula. Copy down and across.

    =INDEX(Sheet2!B$2:B21,MATCH($A2,Sheet2!$A$2:$A$21,0))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    09-19-2012
    Location
    Here There Everywhere
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Vlookup and return values along a Row

    thanks for the input, My only problem with this formula is it requires me to know the exact cell reference and required the data is ordered as neatly as in my exapmle .. the reason i use a v lookup now is the account numbers can be anywhere in the reference file which is huge and contains thousands of clients and multiple coloums of data up to 221 coloumns

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Vlookup and return values along a Row

    =INDEX(Sheet2!B$2:B50000,MATCH($A2,Sheet2!$A$2:$A$50000,0))

    Or use Named ranges

    INDEX & MATCH, works like Lookup...

  6. #6
    Registered User
    Join Date
    09-19-2012
    Location
    Here There Everywhere
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Vlookup and return values along a Row

    Brilliant I have been racking my brains for 4 months over this one !!!

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Vlookup and return values along a Row

    Quote Originally Posted by dabrad89 View Post
    Brilliant I have been racking my brains for 4 months over this one !!!
    You didn't know about our Forum, that time. That's why!

    Thanks for the reb*

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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