+ Reply to Thread
Results 1 to 3 of 3

List Function with Criteria - Index Match with Criteria

  1. #1
    Registered User
    Join Date
    05-28-2014
    Posts
    18

    List Function with Criteria - Index Match with Criteria

    Hi All,

    Have attached a slimmed down version of a spreadsheet I use to log data. Looking for a formula that will auto capture flight numbers from the Trip sheet and populate the TLH and N45DJ sheets for those flights that having the matching criteria.

    Criteria for the TLH sheet is cell TLH!A1 matching with TripsL:L.

    Criteria for the N45DJ sheet is cell N45DJ! matching with Trips!B:B criteria.

    I have been trying various formula's and the best I can get is an Index Match but, having a very difficult time using the formula with a criteria.

    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: List Function with Criteria - Index Match with Criteria

    You could use two helper columns in the Trips sheet to help identify the appropriate records. For example, you can use this formula in cell AM3:

    =IF(L3=TLH!$A$1,MAX(AM$2:AM2)+1,"-")

    and this one in AN3:

    =IF(B3=N45DJ!$A$1,MAX(AN$2:AN2)+1,"-")

    Copy these down to the bottom of your data (or beyond, to accommodate new data being added), and you will get sequential numbers down each column which identify matching records.

    Then in the other two sheets you can use a formula like this in A6 of the TLH sheet:

    =IFERROR(INDEX(Trips!A:A,MATCH(ROWS($1:1),Trips!$AM:$AM,0)),"")

    and this one in A3 of the N45DJ sheet:

    =IFERROR(INDEX(Trips!A:A,MATCH(ROWS($1:1),Trips!$AN:$AN,0)),"")

    These can be copied across and down to fill your tables.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-28-2014
    Posts
    18

    Re: List Function with Criteria - Index Match with Criteria

    Hi Pete,

    That is a great idea. And, it does meet the needs I presented.

    What I didn't post is that I add and subtract pilots and aircraft regularly. While not impossible, I would need to added a separate hidden column for each various aircraft and pilot. Was hoping for a solution that can easily expand and contract with the dynamics of the logs.

    Thank you for the post. Any recommendations/suggestions.

+ 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. Need help in Index, Match usage to match multiple criteria in sum function
    By Summer0830 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2017, 02:47 AM
  2. [SOLVED] INDEX-MATCH with MAX function embeded, need to add second criteria.
    By Big.Moe in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-17-2017, 03:15 PM
  3. [SOLVED] Index Match 3 criteria function!!!!!!
    By Shellybelly in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-05-2015, 03:34 PM
  4. Index and match function multiple criteria
    By mfortier3 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-16-2013, 05:27 AM
  5. VBA equivalent to two criteria Index/Match function
    By g8r777 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-26-2012, 10:16 PM
  6. List all scores which meet criteria (INDEX/MATCH?)
    By Sharpshooter in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-01-2010, 08:03 AM
  7. Index Function - Match 2 criteria
    By jamessaunders in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-28-2007, 08:02 AM

Tags for this Thread

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