+ Reply to Thread
Results 1 to 8 of 8

Count the matches they play together

  1. #1
    Registered User
    Join Date
    03-26-2020
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    4

    Post Count the matches they play together

    There are more than 500 matches in my spreadsheet. I only listed out 10 matches in the attachement. I want to find out how many matches between Dennis and Peter play together? The result is 6 of 10 matches.
    Match.JPG
    Attached Files Attached Files
    Last edited by kllai; 03-26-2020 at 10:15 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Do I use countifs function

    Hi and welcome
    please add some expected results on your sheet, so we can check.
    Thanks

  3. #3
    Registered User
    Join Date
    03-26-2020
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    4

    Re: Do I use countifs function

    Sorry, I have revised it

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,547

    Re: Count the matches they play together

    Hello Kllai and Welcome to Excel Forum.
    This proposal adds a table which may be moved and or hidden for aesthetic purposes.
    Of the various formulas that populate the table:
    1. A list of distinct names is produced using: =INDEX(B$2:B$120,MATCH(0,INDEX(COUNTIF(J$2:J2,B$2:B$120),,),))
    2. The matches played by a player is identified using: =COUNTIFS($B$2:$B$120,$J3,$A$2:$A$120,K$2)
    Note that K2:T2 are populated using the match numbers
    3. The players whose common matches are counted are identified using: =OR(J3=F$2,J3=G$2)
    4. Row 27 is populated using: =COUNTIFS(K3:K25,1,$I3:$I25,TRUE)
    5. The yellow cell is populated using: =COUNTIFS(K27:T27,2)
    Note that row 27 displays 0,1 or 2 and the yellow cell counts the 2's.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Count the matches they play together

    Another way.

    Try array entering this formula.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  6. #6
    Registered User
    Join Date
    03-26-2020
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    4

    Re: Count the matches they play together

    Successful

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Count the matches they play together

    Good to hear. Thank you for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  8. #8
    Registered User
    Join Date
    03-26-2020
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    4

    Re: Count the matches they play together

    Done it, Thanks a lot

+ 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. adding a Frequency function to a CountIFS function
    By Plucky_ in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-12-2017, 08:13 PM
  2. CountIFS Function
    By colegerald38 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-06-2015, 05:53 AM
  3. COUNTIF/COUNTIFS function + nested user-defined function
    By shamjamali in forum Excel General
    Replies: 1
    Last Post: 05-12-2015, 09:12 PM
  4. Use COUNTIFS function on results of DATEVALUE function?
    By Si902 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-16-2015, 08:13 PM
  5. [SOLVED] COUNTIFS Function Help
    By Sandpit in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-29-2012, 12:55 PM
  6. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  7. Countifs function
    By jerrywoods in forum Excel General
    Replies: 1
    Last Post: 11-07-2008, 05:14 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