+ Reply to Thread
Results 1 to 4 of 4

Index and Match for first 3 items found, including cells with same values

  1. #1
    Registered User
    Join Date
    03-29-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    14

    Index and Match for first 3 items found, including cells with same values

    Howdy,

    I need the sheet to output into cells H7,J7,L7 the first three dates it comes across for the Name G7 for Dance 5 (G5) based on the month selected in H2

    Originally have Index and match per below but not sure how to get it to look for the first 3 items including outputting ones with the same date
    =INDEX(C$2:C$749,MATCH(1,INDEX(($A$2:$A$749=$G7)*($B$2:$B$749=H$5)*(TEXT($C$2:$C$749,"mmmyyyy")=TEXT($H$2,"mmmyyyy")),),0))

    Thanks~
    Attached Files Attached Files
    Last edited by hazelwouldbe; 09-18-2012 at 12:14 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Index and Match for first 3 items found, including cells with same values

    What you now want is quite complex and requires a different approach, and presentation of results ..

    Try this tinker in your example sheet
    Input the specified criteria in H2: Jul-12, in H3: Amy, in H4: Dance 5
    (You could create and use DV for all of these criteria, to make it easily selectable)

    Put this in F2:
    =IF(AND(A2=$H$3,TEXT(C2,"mmmyyyy")=TEXT($H$2,"mmmyyyy"),B2=$H$4),ROWS($1:1),"")
    Copy down all the way. This flags the criteria specified in H2:H4

    Then put this in H7:
    =IF(ROWS($1:1)>COUNT($F$2:$F$749),"",INDEX(C$2:C$749,SMALL($F$2:$F$749,ROWS($1:1))))
    Copy across to I7, fill down to return all the Dates and Jobs which meet the criteria specified in H2:H4
    All results will be neatly packed at the top
    (You could easily read off the first 3 or x results)

    --------
    Success? Celebrate it, hit the star at the bottom left of my responses

  3. #3
    Registered User
    Join Date
    03-29-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Index and Match for first 3 items found, including cells with same values

    That's great, I can definitely use that.

    Thanks for all your help Max, Singapore.
    Appreciate it!.

  4. #4
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Index and Match for first 3 items found, including cells with same values

    welcome, and do take a moment to express your satisfaction by clicking the little star at the bottom left of my responses

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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