+ Reply to Thread
Results 1 to 4 of 4

MATCH Function - Multiple Criteria

  1. #1
    Registered User
    Join Date
    09-07-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    54

    MATCH Function - Multiple Criteria

    Hi,

    Need a bit of help with a match formula. I have data on employees and their benefits. They can have a pension and one of three other benefits (Gym/Medical/Free Lunch). I need my match formula to search for the employee number and then one of the additional benefits.

    I have this formula: {=MATCH(E2&E3,CODE&ADDITIONAL_Pay,0)} which will return the correct information, for example if the employee number is "3333" and they have a "free lunch" - it pulls out 13, the correct row location.

    What I need to find out, is how I can amend the formula so that if the employee number is "3333" and "Free Lunch / Gym / Medical" are present then the correct benefit is returned. The staff member can only have one additional benefit in excess of their pension.

    I've tried lots of ways, with IF /OR but none seem to work. I also seem to encounter the problem that my Match formulae only seems to find the first instances of the employee number.

    I've attached a simplified version of my problem.
    MATCH example.xlsx

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: MATCH Function - Multiple Criteria

    Please Login or Register  to view this content.
    Why is pension listed in the additional pay column? Will it ever not be paid?
    +1 because of pension as the first (mandatory) benefit....
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    09-07-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: MATCH Function - Multiple Criteria

    Hello,

    Thank, that works, I think I see what you have done with the +1, i.e shifted the row down one. However, I realised my file gave the wrong impression.

    People can opt out of the pension, so it won't always be there.

    Sometimes there will be other bits of data in the list so potentially, for each employee their could be 3 entries, 4, 2, 1 etc. So, as much as your solution is spot on, I don't think it will work in the situation I find myself in.

    I've updated the file:

    MATCH example.xlsx

    Thanks for the help.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: MATCH Function - Multiple Criteria

    try in E4:E7
    Please Login or Register  to view this content.
    Modified named ranges CODE & ADDITIONAL_Pay to exclude row 1.
    Used offset to create a dynamic block of cells which only correspond to the CODE.
    Attached Files Attached Files
    Last edited by protonLeah; 09-22-2015 at 11:22 PM.

+ 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. URGENT HELP! Match function with multiple criteria
    By nickynec in forum Excel General
    Replies: 10
    Last Post: 09-02-2015, 03:36 PM
  2. [SOLVED] Index-Match function with multiple criteria
    By MikeSta4ord in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-05-2015, 12:51 PM
  3. How do you drag down an index match function with multiple criteria?
    By larryg003 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2014, 01:26 PM
  4. Using MATCH and INDEX function with multiple criteria
    By Babylon in forum Excel Programming / VBA / Macros
    Replies: 52
    Last Post: 02-06-2014, 11:28 AM
  5. Multiple Criteria Index/Match Function in VBA Looking Up Dates/Strings/Numbers
    By nadstradamus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2014, 12:35 PM
  6. Lookup or match function with multiple criteria giving different results
    By Mian USman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-24-2013, 09:15 AM
  7. Index and match function multiple criteria
    By mfortier3 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-16-2013, 05:27 AM

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