+ Reply to Thread
Results 1 to 9 of 9

Multiple match with Counta/Index/Match/Match

  1. #1
    Registered User
    Join Date
    01-31-2020
    Location
    France
    MS-Off Ver
    2016
    Posts
    3

    Multiple match with Counta/Index/Match/Match

    Hi, everybody,

    I have an Excel file listing the trip location per driver and per day.

    The result I am looking for is a synthesis table of the number of days worked per weekday and per driver.
    I try to find a formula to count the number of non-empty cells according to the name of the driver and the day of the week.

    Function.png

    So far, by combining the functions "Counta/Index/Match/Match" I only manage to find the number of days on the first week, the function stops after finding the result of the first Match.

    =COUNTA(INDEX($A$1:$U$21,MATCH($A25,$A$1:$A$21,0),MATCH(B$24,$A$1:$U$1,0)))

    The result I'm looking for would be for example: for Driver 1, Sunday = 2.

    Does someone have any ideas?
    I hope my question is clear enough, I attach the file for more clarity.

    Thank you in advance for your help !

    Anais
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Multiple match with Counta/Index/Match/Match

    Try COUNTIFS, choose your fields and criteria.

    Pete

  3. #3
    Registered User
    Join Date
    01-31-2020
    Location
    France
    MS-Off Ver
    2016
    Posts
    3

    Re: Multiple match with Counta/Index/Match/Match

    Hello Pete,

    Thank you for your answer.
    I tried with the Countifs function, unfortunately, because some of the arguments are present in line and not in column (days of the week) the function doesn't work.

    Maybe you know another function that might be appropriate in this situation?

  4. #4
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,995

    Re: Multiple match with Counta/Index/Match/Match

    B25=if(and($a25<>"",b$24<>""),sumproduct(($a$3:$a$21=$a25)*($b$1:$u$1=b$24)*($b$3:$u$21<>"")),"")


    copy across and down

  5. #5
    Registered User
    Join Date
    01-31-2020
    Location
    France
    MS-Off Ver
    2016
    Posts
    3

    Re: Multiple match with Counta/Index/Match/Match

    It works perfectly, many thanks !!

  6. #6
    Registered User
    Join Date
    01-16-2021
    Location
    Boston, MA
    MS-Off Ver
    Office 365
    Posts
    1

    Re: Multiple match with Counta/Index/Match/Match

    Hi all,

    I did a multiple criteria index match and I want to count the results. I keep getting "1" even though I know there are multiple results.

    Not sure what is wrong with this formula:

    =COUNTA(INDEX(Sheet1!$A$1:$AB$2192,MATCH(1,(Sheet7!A:A=Sheet7!A3)*(Sheet7!B:B=Sheet7!B3)*(Sheet7!C:C=Sheet7!C3)*(Sheet7!E2),0),Sheet1!A:A))

  7. #7
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,995

    Re: Multiple match with Counta/Index/Match/Match

    Attach a file with results

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,920

    Re: Multiple match with Counta/Index/Match/Match

    B25 cell formula , copy across and down

    =SUMPRODUCT(($A$3:$A$21&$B$1:$U$1=$A25&B$24)*($B$3:$U$21<>""))
    Last edited by AliGW; 01-17-2021 at 09:06 AM.

  9. #9
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,995

    Re: Multiple match with Counta/Index/Match/Match

    B25=SUMPRODUCT(($A$3:$A$21=$A25)*($B$1:$U$1=B$24)*($B$3:$U$21<>""))

    Copy across and down

+ 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. Need Help with Index, Match, Match with multiple results and copying data x times
    By jrboyd in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-27-2019, 06:57 AM
  2. Replies: 5
    Last Post: 02-18-2017, 11:21 AM
  3. Replies: 1
    Last Post: 06-18-2015, 08:45 AM
  4. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  5. Replies: 5
    Last Post: 02-06-2015, 08:44 PM
  6. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 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