+ Reply to Thread
Results 1 to 7 of 7

Matching 3 criteria using index and match formula

  1. #1
    Registered User
    Join Date
    06-27-2008
    Location
    exeter
    Posts
    30

    Matching 3 criteria using index and match formula

    Hi,

    I have a sample excel sheet attached, basically I have 3 criteria and want to return the cost from the data table I have tried to use the formula below, works fine when I'm search just 1 cell i.e. B2=A3 but when searching a range B2:G2=A3 it comes back with N/A:

    =INDEX(Sheet1!B4:G6,MATCH(1,IF(Sheet1!B2:G2=A3,IF(Sheet1!B3:G3=A4,IF(Sheet1!A4:A6=A6,1))),0))

    A3 - Location
    A4 - Total Cost
    A6 - Manager


    I am trying to return the Manager cost from a data table on Sheet 1 B4:G6. If you could help I would be grateful.
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Matching 3 criteria using index and match formula

    Here, try this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Important: On sheet1 you have extra spaces after London. Remove those spaces (see mine example) to have exact match.
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Matching 3 criteria using index and match formula

    Hi,

    Try below formula in B6 and confirm with Ctrl+Shift+Enter.

    =INDEX(Sheet1!$B$4:$G$6,MATCH(Sheet2!A6,Sheet1!$A$4:$A$6,0),MATCH(Sheet2!$A$3&Sheet2!$A$4,Sheet1!$B$2:$G$2&Sheet1!$B$3:$G$3,0))

    Also note LONDON on your table has an extra trailing space. Delete it.

  4. #4
    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,425

    Re: Matching 3 criteria using index and match formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Committed with Ctrl-Shift-Enter rather than just Enter


    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


  5. #5
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Matching 3 criteria using index and match formula

    hi, tRY THIS ARRAY
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by boopathiraja; 10-21-2014 at 08:06 AM.
    Click just below left if it helps, Boo?ath?

  6. #6
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Matching 3 criteria using index and match formula

    Hi All,

    a different approach

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cheers
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  7. #7
    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,425

    Re: Matching 3 criteria using index and match formula

    @canapone: I like that approach. However, with the exception of A6, you would need to make all the cell references absolute to drag down the formula.


    Regards, TMS

+ 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: 09-27-2014, 04:34 PM
  2. Index formula and matching 2 criteria; 1 relating to a closest date
    By fordieuk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-05-2013, 03:59 AM
  3. [SOLVED] Need help using Index and Match for table lookup with 2 criteria matching
    By lorne17 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-27-2012, 09:26 AM
  4. [SOLVED] Index/Match Not Matching Correctly on Multiple Criteria Across Sheets
    By cbauer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-02-2012, 04:19 PM
  5. Replies: 2
    Last Post: 03-31-2009, 11:04 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