+ Reply to Thread
Results 1 to 3 of 3

Using Countif and avoiding duplicates

  1. #1
    Registered User
    Join Date
    01-09-2012
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    54

    Using Countif and avoiding duplicates

    Hi,

    I'm trying to count up the cumulative wins and losses of a respective teams schedule. However, since teams play each other more often than once, there are repeat records. What I would like is to add up the number of wins and losses on the schedule I've attached but not referencing the same teams record more than once. I.e. if you play Seattle 3 times, you only count there wins and losses once, not 3 times. This is going to be a growing data sheet since teams play almost everyday. Also, since it is early in the season, there will be more teams added to the schedule as the games are played. Not sure if this matters...

    Thanks!

    -Dan
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Using Countif and avoiding duplicates

    I would add a column (i.e D) with
    =COUNTIF($A$2:A2,A2) dragged down

    and then for wins
    =SUMIF(D2:D13,1,B2:B13)
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    01-09-2012
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Using Countif and avoiding duplicates

    thats exactly what i wanted. thank you much

+ 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