+ Reply to Thread
Results 1 to 6 of 6

Matching multiple criteria

  1. #1
    Registered User
    Join Date
    04-25-2015
    Location
    Ontario, Canada
    MS-Off Ver
    2016
    Posts
    72

    Matching multiple criteria

    In my spreadsheet, on Sheet "Aug19", I would like to pull a value from a table based on two criteria.

    Criteria 1 - Name of Employee
    Criteria 2 - Work Centre (WC) they will be working in.

    Each employee has a particular efficiency in each work centre, and I would like to return the hours value that they contribute in that WC.

    I built a simple index match to find the hours, but I do not know how to also find the proper column to pull the hours from at the end of the formula.

    Right now I have:

    =INDEX(Skill!A1:O6,MATCH(A12,Skill!A:A,0),5)
    I have a feeling this is simple, not sure where I am going wrong here.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-25-2015
    Location
    Ontario, Canada
    MS-Off Ver
    2016
    Posts
    72

    Re: Matching multiple criteria

    I just realized on the skills tab, the columns should be named the opposite. Might help simplify the formula too.

    For example WC01 Eff should have the efficiency value, not the hour output. I will update a new sheet when I get a second.

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Matching multiple criteria

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


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Registered User
    Join Date
    04-25-2015
    Location
    Ontario, Canada
    MS-Off Ver
    2016
    Posts
    72

    Re: Matching multiple criteria

    So I had originally marked this solved, as the solution provided by @avk did work correctly. However, I've gone and updated the workbook with the real data, which includes a much longer list of employees on the "Skill" tab, and it looks to have broken this formula. I tried to expand the formula to encompass the new employees, but I kept returning an error.

    Any assistance in understanding how the formula works and how to expand it would be greatly appreciated. I can see it has two sections that are looking at a range and seeing if they match with the Employee name given, but I don't understand how the * works in this formula or what the last section is doing. It seems to be looking up the third peice of info based on the other two, but doing so using arrays and binary?

    =SUMPRODUCT((Skill!$A$2:$A$6=$A12)*(Skill!$D$1:$O$1=$B12)*(Skill!$D$2:$O$6))

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,495

    Re: Matching multiple criteria

    You should only need to change the numbers in red:

    =SUMPRODUCT((Skill!$A$2:$A$6=$A12)*(Skill!$D$1:$O$1=$B12)*(Skill!$D$2:$O$6))

    6 needs to be changed to whatever the final row is, so the row that the last employee is on.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    04-25-2015
    Location
    Ontario, Canada
    MS-Off Ver
    2016
    Posts
    72

    Re: Matching multiple criteria

    Thanks AliGW - that got it running again. Any chance you or another could explain how it's working? I seem to be missing something as I don't work often with array formulas.

+ 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: 1
    Last Post: 07-05-2016, 06:35 AM
  2. Multiple cells, multiple sheets, multiple criteria matching
    By Drudnits1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-17-2014, 12:12 PM
  3. Replies: 0
    Last Post: 10-16-2013, 12:42 PM
  4. how to look up multiple multiple matching criteria and return single value
    By mikeb@aero-plastics in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-06-2013, 07:59 PM
  5. Lookup multiple & non duplicated results for multiple matching criteria
    By melvil007 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-19-2012, 01:22 AM
  6. INDEX matching multiple criteria with multiple results
    By Montanes in forum Excel General
    Replies: 4
    Last Post: 06-21-2011, 04:38 PM
  7. [SOLVED] return multiple records matching multiple criteria
    By Karthik in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2006, 12:45 PM

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