+ Reply to Thread
Results 1 to 8 of 8

Index,match,match

  1. #1
    Registered User
    Join Date
    10-31-2012
    Location
    Alaska, USA
    MS-Off Ver
    Excel 365
    Posts
    14

    Index,match,match

    HELP!
    I'm trying to write an Index,Match,Match formula to return a value from a cell based on 2 criteria.
    I need it to return the cell value in the "CNT" column which corresponds to the "GSX/AVI" row and "ANC" from the REGION column and "ANC" from the "FLIGHT ORIGIN" column. So for example:ANC - ANC - GSX/AVI = 198

    I've been struggling with this for the past week and it's making me crazy. I haven't any code to display as the only thing I've been able to get to work is =VLOOKUP("*anc*",A12:M152,10,FALSE) but that doesn't return the value for GSX/AVI

    All help greatly appreciated,
    Thank you in advance!
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,428

    Re: Index,match,match

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    works but I don't know if you can make it work elsewhere.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Index,match,match

    Do A:E always only have an entry in 1 row (and is it necessary to have A:B and D:E merged?)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Index,match,match

    I added three helper columns that trimmed the data in columns A,C and D (as B is merged with A).
    The formula that I put in B, which was selected when I opened the file so I assumed that is where the formula should go, was:
    Please Login or Register  to view this content.
    This is the file with the formula applied:Copy of Operational View - Daily.xlsx

    Hope this helps.

  5. #5
    Registered User
    Join Date
    10-31-2012
    Location
    Alaska, USA
    MS-Off Ver
    Excel 365
    Posts
    14

    Re: Index,match,match

    Quote Originally Posted by FDibbins View Post
    Do A:E always only have an entry in 1 row (and is it necessary to have A:B and D:E merged?)
    When expanded the column FLIGHT ORIGIN will have a repeat of each of the city codes in the REGION column. Ideally I suppose I could use the name ANC in the FLIGHT ORIGIN column instead of the REGION column.
    As for the merged columns, this is how the raw data comes from the main server.

  6. #6
    Registered User
    Join Date
    10-31-2012
    Location
    Alaska, USA
    MS-Off Ver
    Excel 365
    Posts
    14

    Re: Index,match,match

    JeteMc - Thank you! This just may work. I will now have to figure how to work that into the macro I've built to format the full workbook!

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Index,match,match

    Try this withoutthe helper, it assumes that your data is repeated in column C...
    A
    B
    C
    D
    E
    9
    198
    ANC GSX/AVI
    10
    11
    Region
    Flight Origin
    Product
    12
    SEA
    SEA

    B9=INDEX($F$12:$M$152,MATCH("*"&C9&"*"&" "&D9,INDEX($C$12:$C$152&" "&$D$12:$D$152,0),0),MATCH("CNT",$F$11:$M$11,0))
    C9 and D9 are your search criteria

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Index,match,match

    Glad that you found something that works for you. Please mark the thread 'Solved' and if anyone provided helpful information please consider adding to their reputation.

+ 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. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  2. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  3. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  4. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  5. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  6. [SOLVED] Index/Match/Match....Stops without completing the match
    By irsles in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-14-2012, 10:16 PM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 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