+ Reply to Thread
Results 1 to 4 of 4

Vlookup across multiple tabs in separate workbook?

  1. #1
    Registered User
    Join Date
    10-18-2007
    MS-Off Ver
    2010
    Posts
    90

    Vlookup across multiple tabs in separate workbook?

    Good morning,
    Hopefully this is a simple solution.
    I have a workbook with each tab (71 total) containing a business plan for a specific account. The account name is in cell A4 and the planned sales amount is in cell X9. I also have a worksheet in a different workbook with same account names in cells A2 - A72 and want to pull the corresponding sales from the first workbook into cells B2 - B72. Any ideas?

    Many thanks in advance.
    N

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If your tabnames are the same as what you listed in A2:A79, then you can use the INDIRECT() function.... but if the original workbook is going to be closed, you will need to download and install a free addin called Morefunc.dll from here: http://xcell05.free.fr/english/ and use Indirect.Ext()

    e.g. =Indirect.Ext("'C:\My Documents\[SalesWorkbook.xls]"&A2&"'!$X$9") copied down.

    of course, replacing path and workbook name (in italics) with actual workbook path. Watch the single and double quotes... don't delete those.

    Note: If you will keep the original book open, then Indirect() will do.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-18-2007
    MS-Off Ver
    2010
    Posts
    90
    Honestly, I am not that familar with the INDIRECT function. The tab names are not exactly the same as the data in A2-A72.

    I will look through the add in functions on that site and see if there is anything that can help me, but until then, I appreciate your assistance.

    Thank you,
    N

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If you can manipulate, via formulas, the items in A2:A79 to end up the same as the tab names then you can still use the items in that range.

    e.g. if Tab Name is Acct1 and your A2 value is Acct-1,,,then you can use a function such as =Substitute(A2,"=","") and get a result of Acct1 which would allow you to search the corresponding tab.....

    ...just FYI.... if you need further assistance, do come back.

  5. #5
    all4excel
    Guest

    Smile To get the Sheet names

    In order to get the Names of the Sheets in any column as mentioned by NBVC, define A Name - Sheet and insert this formula in the Name define window..

    Sheet - SUBSTITUTE(GET.WORKBOOK(1),"["&GET.WORKBOOK(16)&"]","")

    and then Lets say you want this to appear in the column A from A2 onwards then...

    [ IF(ISERROR(INDEX(Sheets,ROWS($A$2:$A2)))," ",INDEX(Sheets,ROWS($A$2:$A2))) ]

    Then you can use the IINDIRECT function..

+ 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