+ Reply to Thread
Results 1 to 8 of 8

Lookup against multiple external tabs

  1. #1
    Registered User
    Join Date
    07-31-2014
    Location
    London
    MS-Off Ver
    2010
    Posts
    15

    Lookup against multiple external tabs

    Hi Guys,

    I have a table, which I can't draw so I will explain!

    I have several columns with headings such as "BOGOF" and "2F£2" etc. Down the side, I have several products such as "Cans" and "500ml".

    I am looking to extract data from an external file, problem being all the various packs have a different tab in the external file. Ie. tab for Cans and a tab for 500ml and so on.

    The good thing is that all the tabs in the external file are the exact same template and I have taken the exact same headings and pack names (so should be able to look up).

    I need to derive a formula which would look the pack up against the tab name (or in cell C4, where it is repeated) and then perform a Hlookup against row 11 and below (into a table) to pick out the correct data.

    Is this possible? So my formula would 1) lookup against tab name or cell C4 of every tab to match to the product in my table and 2) perform a Hlookup in the correct tab to bring back the volume from row 11.

    Can I please get some help with this?!

    Thanks so much in advance!!

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,725

    Re: Lookup against multiple external tabs

    This should be possible using the INDIRECT function if you can have the external file open when you need to use the first file. If the external file is not open INDIRECT will return an error.

    I can provide more detail if you can attach both files to see the data. In your description you start talking about "packs" without explaining what those are or where they are located. I'm not clear on the relationships between the two files.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    07-31-2014
    Location
    London
    MS-Off Ver
    2010
    Posts
    15

    Re: Lookup against multiple external tabs

    Hi 6StringJazzer,

    Sorry for the duplicate request and for not attaching the file.

    I have attached a couple of examples without the correct formatting, but everything is in the same place.

    Essentially, I am looking to complete my table, such as the one in "Example 1", by looking up against a file with the layout such as "Example 2". I would look up the £2 mechanic in my table, for example in row 11 and bring back the volume from row 14, provided the tab is the same as the product I am look at.

    Does this make sense?

    Let me know if there is anything else you need from me, hope I've attached the files correctly!
    Attached Files Attached Files

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,725

    Re: Lookup against multiple external tabs

    Where do the tab names come into play? Your example just has one tab, generically called Sheet1.

  5. #5
    Registered User
    Join Date
    07-31-2014
    Location
    London
    MS-Off Ver
    2010
    Posts
    15

    Re: Lookup against multiple external tabs

    Hi 6StringJazzer,

    Sorry, that sheet 1 would be called "Cans" for example and there are several of those tabs.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,725

    Re: Lookup against multiple external tabs

    I have put in a formula that will look up the Gross Volume in row 14. You have "Mechanic" in row 11, not any kind of volume. You have at least five different rows with some sort of volume so I just picked one.

    [delete following text--I figured out before attaching the files that the lookup value for these columns was lower down You also have 10 columns of data, and I don't know which one you need to look up.]

    There is only one tab, Cans, so the other two references to non-existent tabs cause errors.

    Some of your categories are missing, so those cause errors.
    Attached Files Attached Files
    Last edited by 6StringJazzer; 07-21-2015 at 02:18 PM.

  7. #7
    Registered User
    Join Date
    07-31-2014
    Location
    London
    MS-Off Ver
    2010
    Posts
    15

    Re: Lookup against multiple external tabs

    Thanks 6StringJazzer

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,725

    Re: Lookup against multiple external tabs

    You're welcome, let me know if you need help adapting this to your full files.

+ 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] Lookup Macro for multiple tabs
    By excelnoob927 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-23-2014, 04:50 PM
  2. Lookup accross multiple sheets in external workbook
    By Eustace07 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-03-2014, 08:47 AM
  3. Lookup value across multiple tabs and return value in another cell
    By loulite in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-15-2014, 02:01 AM
  4. vba lookup logic for multiple tabs
    By bordensize in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-04-2013, 06:02 PM
  5. [SOLVED] 4 Way Lookup/Match - Across Multiple Tabs - Return One Value
    By skyraptor in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-04-2013, 12:38 AM
  6. lookup with multiple criteria on multiple tabs
    By tf2722 in forum Excel General
    Replies: 5
    Last Post: 11-01-2011, 05:53 PM
  7. Value lookup from multiple tabs
    By rmantoo in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 03-16-2010, 08:10 AM

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