+ Reply to Thread
Results 1 to 2 of 2

Vlookup results from 2 tables

  1. #1
    Registered User
    Join Date
    06-30-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    3

    Vlookup results from 2 tables

    I am currently trying to figure out how to do a vlookup (if even possible) to pull results from two different tables.

    In my example right now I have a lookup table that will be used to reference
    Apple Fruit
    Orange Fruit
    Grapes Fruit
    Bread Other
    Lettuce Vegetable
    Eggs Other
    Spinach Vegetable

    But given I have 2 other tables that I must use to lookup the values, I want the result to come back as "fruit" even if the other table has an item that would return a value as "other." If it is possible, I would like it to come back in a hierarchy starting with fruit, then vegetable. I want the "fruit" value to override the result from the other table.

    The end result I am trying to get to is:

    Table 1(lookup value) Table 2(lookup value) End Result
    Eggs Orange Fruit
    Bread Spinach Vegetable
    Eggs Apple Fruit
    Spinach Apple Fruit

    Any ideas on how I will be able to do that?

  2. #2
    Forum Contributor
    Join Date
    03-12-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    230

    Re: Vlookup results from 2 tables

    For the purposes of this example, let's assume that the top table in your inquiry is in cells A1:B7 and that the second table is in A9:C12. In cell C9, enter the following formula and drag down the column:

    =IF(OR(VLOOKUP(A9,$A$1:$B$7,2,FALSE)="Fruit",VLOOKUP(B9,$A$1:$B$7,2,FALSE)="Fruit"),"Fruit",IF(OR(VLOOKUP(A9,$A$1:$B$7,2,FALSE)="Vegetable",VLOOKUP(B9,$A$1:$B$7,2,FALSE)="Vegetable"),"Vegetable","Other"))

+ 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. New to pivot tables - need to calculate from the results
    By The Cardinal in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-17-2014, 01:03 AM
  2. [SOLVED] Using VLookup but results show formula instead of results...
    By excel me in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 11-28-2013, 09:40 PM
  3. VLookup that Results with False or Blank Results
    By mycon73 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-12-2013, 07:16 PM
  4. Results from Multiple Tables
    By UPSguy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-03-2008, 09:46 PM
  5. pivot tables hiding zero results
    By zeek in forum Excel General
    Replies: 3
    Last Post: 04-03-2008, 06:11 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