+ Reply to Thread
Results 1 to 4 of 4

Vlookup accross many tabs

  1. #1
    Registered User
    Join Date
    10-26-2009
    Location
    Hailsham, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Vlookup accross many tabs

    Hi,

    i need to be able to alter the tab which is specified in a VLOOKUP command depending upon which value is given in a drop down box.

    ie if the drop down box reads 2 the VLOOKUP should search for an item reference given on tab 2 etc.

    Does this make sense?
    Last edited by festering; 10-27-2009 at 12:16 PM.

  2. #2
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Vlookup accross many tabs

    Quote Originally Posted by festering View Post
    Hi,

    i need to be able to alter the tab which is specified in a VLOOKUP command depending upon which value is given in a drop down box.

    ie if the drop down box reads 2 the VLOOKUP should search for an item reference given on tab 2 etc.

    Does this make sense?
    This has been one my "ever-to-puzzle-me" questions. I'm pretty sure that other can give you a more elaborate function, or even a code (which means that you are on the wrong thread), but the way I have done it is this:

    If I have multiple tabs that have similar data (that is all the data is organized in similar number of columns, and have a common lookup value (column 1). I would name the range on each tab (depending on what it is, for instance if it is years, I would name them "2008", "2007", "2006", etc.) You do this by Highlighting the range and going to Insert>Name>Define.

    Then on the sheet where I would put the function I would use a nested IF function, i.e, IF vlookup criteria says Year 2008, then to look in 2008 range, if it is 2007 then to look in the 2007 name range, etc. [Note in the table array argument of the vlookup function insert the name of your range]

    Hope this helps

    Ron

  3. #3
    Registered User
    Join Date
    10-26-2009
    Location
    Hailsham, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Vlookup accross many tabs

    It is a good suggestion, however i have found another way of doing it by using the IFERROR function to systematically search a sequance of tabs, however i have now come accross another problem i have too many tabs and therefore to many arguments. do you know how to overcome this problem?

  4. #4
    Registered User
    Join Date
    10-26-2009
    Location
    Hailsham, England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Vlookup accross many tabs

    sorted the arguments was refering to another problem and that is sorted now i have a lookup spanning over many tabs yay

+ 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