+ Reply to Thread
Results 1 to 4 of 4

Lookup Multiple Tables, match, and extract relevant data

  1. #1
    Registered User
    Join Date
    09-28-2009
    Location
    kuwait
    MS-Off Ver
    MS365 MSO 16.2.13127.21624
    Posts
    29

    Lookup Multiple Tables, match, and extract relevant data

    Can anyone help me with this please..

    I have a worksheet (Sheet1) listing
    A) Employee ID number
    B) Flight No.
    C) Date of Flight
    D) Day of Week
    E) Type of Flight

    The next worksheet (Sheet2) contains
    A) Flight No.
    B) Weekdays (Sunday to Saturday) listing the type of flight (Long or Short) against each day. Denoted by "L" or "S". "x" means no flights on that day of the week.

    When an employee on Sheet1 requests for a Flight No. on a give date/day, I would like the type of flight ("L" or "S" or "X") to appear in E2. Which of course is extracted from the relevant cell in Sheet2.

    I am attaching the sample data sheet. Any pointers to solve this problem will be appreciated.

    Thank you

    Jacob
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Lookup Multiple Tables, match, and extract relevant data

    Paste this formula to e2 cell in sheet 1
    =IFERROR(INDEX(Sheet2!$B$2:$H$17,MATCH(Sheet1!B2,Sheet2!$A$2:$A$17,0),MATCH(Sheet1!D2,Sheet2!$B$1:$H$1,0)),"")
    Put there iferror function because some of flights are are not avialable (ex 301, 541) in sheet 2 and returns N/A error.
    Appreciate the help? CLICK *

  3. #3
    Registered User
    Join Date
    09-28-2009
    Location
    kuwait
    MS-Off Ver
    MS365 MSO 16.2.13127.21624
    Posts
    29

    Re: Lookup Multiple Tables, match, and extract relevant data

    Thank you so much AZ-XL. That was so quick. I am slapping myself for wasting one whole week on this without any success!!

  4. #4
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Lookup Multiple Tables, match, and extract relevant data

    You are welcome q8books. Happy that helped you. Do not forget to click on star in the left-bottom side of the message bar

+ 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. How to combine multiple tables together and match the data?
    By kevinsmith0000 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-15-2013, 02:27 AM
  2. Formula to Extract relevant data
    By khurramfarooqpk in forum Excel General
    Replies: 3
    Last Post: 05-09-2013, 03:34 AM
  3. How to extract relevant column data in excel 2003
    By joee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2010, 04:57 AM
  4. Modifying Lookup formula to get relevant data
    By LouP in forum Excel General
    Replies: 3
    Last Post: 04-22-2009, 05:11 PM
  5. Extract data from multiple sheets with # match
    By Jim15 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-07-2008, 07:16 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