+ Reply to Thread
Results 1 to 7 of 7

Vlookup to change worksheet reference

  1. #1
    Registered User
    Join Date
    09-01-2011
    Location
    Missouri
    MS-Off Ver
    Excel 2010
    Posts
    13

    Vlookup to change worksheet reference

    I am trying to do a Vlookup across 17 different worksheets and it is getting old manually changing the worksheet reference so I was hoping there was a work around. This is the function that I currently have:

    =VLOOKUP(A60,Week1!$A$1:$H$16,5)

    I would for "week1" to change to "week2","week3" and so on as I copy the formula across. The table reference stays the same on the the sheets as well as the lookup value.

    If it helps, the table I am trying to copy the formula across in has the same headings as the worksheets.

    Any help would be appreciated.
    Last edited by ChrisHowk; 09-07-2012 at 04:10 PM.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Vlookup to change worksheet reference

    if the headers are in B1 C1 D1 and so on and the formula goes in B2
    =VLOOKUP($A60,INDIRECT("'"&B$1&"'!$A$1:$H$16"),5)
    then copy across
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    09-01-2011
    Location
    Missouri
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Vlookup to change worksheet reference

    The headers would be C20,D20,.... and the formula would go in multiple rows below from 21 through 65. I tried inserting C20 in place of B1 but got an error.

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Vlookup to change worksheet reference

    what error? did you use C$20 in place of B$1? may help to provide a workbook

  5. #5
    Registered User
    Join Date
    09-01-2011
    Location
    Missouri
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Vlookup to change worksheet reference

    It was the basic error message saying something was wrong with the formula. It took me the [!] part.

    Fantasy Football.xlsx

  6. #6
    Registered User
    Join Date
    09-01-2011
    Location
    Missouri
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Vlookup to change worksheet reference

    Sorry. I think I figured out what I did wrong. I didn't catch that I was including the table reference outside the INDIRECT funciton. Thank you for your help! it worked just fine when I was able to get over my "user error".

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Vlookup to change worksheet reference

    you're welcome :-)

+ 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