+ Reply to Thread
Results 1 to 4 of 4

Lookup Based On Multiple Tables

  1. #1
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Lookup Based On Multiple Tables

    Hi All

    I am hoping someone could help me with a query.

    I am trying to produce a formula that would lookup an item based on a specific table (mutiple).

    Table Names Red, Blue, Green for example (ODBC table)

    Cell A1 - "Red"
    Cell A2 - 10000

    I need a formula to lookup Cell A2 within the table named "Red" and in A3 the result of the 3rd column along.

    If A1 is changed to "blue" then the lookup is from the table named "blue"

    Thanks very much for your time

    Diane

  2. #2
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: Lookup Based On Multiple Tables

    Diane

    Try this:
    =IF(A1="Red",VLOOKUP(A2,Red,2,FALSE),IF(A1="Blue",VLOOKUP(A2,Blue,2,FALSE),IF(A1="Green",VLOOKUP(A2,Green,2,FALSE),0)))

    The Red, Green & Blue without the quotes are named ranges representing your three tables.

    Windy

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,371

    Re: Lookup Based On Multiple Tables

    I hope with example make it clear

    Azumi
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Lookup Based On Multiple Tables

    Thanks Windy58 and Azumi.

    Your help is very much appreciated.

    Everything works a dream. It is such a useful tool to have, and am sure I will be using it again in the future.

    Once again many thanks for your time.

    Diane

+ 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. Replies: 2
    Last Post: 05-10-2012, 10:38 AM
  2. Excel 2007 : Lookup different tables and based on multiple input criteria
    By The Cushion Supplier in forum Excel General
    Replies: 11
    Last Post: 03-26-2011, 12:04 PM
  3. Multiple tables lookup
    By tornado1981 in forum Excel General
    Replies: 3
    Last Post: 04-04-2010, 10:46 AM
  4. multiple lookup tables
    By ministerofdeath in forum Excel General
    Replies: 1
    Last Post: 03-24-2009, 03:52 AM
  5. [SOLVED] Using Multiple LOOKUP tables
    By KG in forum Excel General
    Replies: 3
    Last Post: 05-06-2005, 08:06 PM

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