+ Reply to Thread
Results 1 to 2 of 2

INDEX MATCH with multiple criteria Part 2

  1. #1
    Registered User
    Join Date
    10-25-2017
    Location
    United States
    MS-Off Ver
    2019
    Posts
    63

    INDEX MATCH with multiple criteria Part 2

    I want to create a list of all employees that have a 1 in column E. Note that employees can be listed multiple times based on having both MEDICAL & DENTAL packages.

    Here is a link to the original post I had to find all employees with a 1 relationship and medical package:
    https://www.excelforum.com/excel-for...ml#post4940860

    I am looking to update the formula to include all employees with a relationship 1 regardless of package without duplicates. I have the desired results within the attached worksheet.

    I appreciate your help!
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: INDEX MATCH with multiple criteria Part 2

    OK, this was fun. I solved it with the help of a number of helper columns.

    First of all I converted the data to an Excel Table because: (A) Excel tables know how big they are and any formulas, charts and pivot tables built from them always reference the exact amount of data they have to and (B) you can use the column headers in the formulas which makes it easier to understand them

    The first helper column was to make a composite of the Group and Name - this is what makes a record unique. =[@Group]&":"&[@Name].

    Then I got an indication if the record was unique: =MATCH([@Composite],[Composite],0)=ROW()-1 - this formula is only true if for the first occurrence of the combination.

    Then I got the type of family member =VLOOKUP([@Relationship],Table_Relation,2,FALSE) - this resolved to Self, Spouse and Child.

    Then I had to figure out the order of the children: =COUNTIFS([Group],[@Group],[New Rel],"Child",[DOB],"<=" &[@DOB]+ROW()/24,[Unique],TRUE) - this got the number of children in the Group who are older than the child in question. I threw in +ROW()/24 as a tie breaker on DOB (twins). Twins, triplets, etc., who share the same DOB are assumed to be born an hour apart.

    Finally, I could construct the member's "standing" =IF([@[New Rel]]="Child","Child "&[@[Child Number]],[@[New Rel]])

    Now with all this information, I could construct a pivot table. A family can have any number of children under this scheme. About the only thing I would do is drag and drop Self and Spouse to the 1 and 2 column positions in the pivot table.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. [SOLVED] Index Match with multiple criteria and date criteria
    By snolem75 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2018, 03:51 PM
  2. Replies: 16
    Last Post: 01-05-2018, 11:04 PM
  3. 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
  4. Index/Match to Match entries on multiple criteria
    By manning457 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2015, 02:32 PM
  5. [SOLVED] INDEX/MATCH with Multiple MATCH criteria ?
    By KomicJ in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-17-2015, 09:04 AM
  6. [SOLVED] Index Match with Multiple Criteria Using Same Criteria Column
    By rominjn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-05-2015, 11:34 AM
  7. Replies: 2
    Last Post: 09-27-2014, 04:34 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