+ Reply to Thread
Results 1 to 6 of 6

Count CF colors

  1. #1
    Registered User
    Join Date
    07-31-2011
    Location
    Massachusetts, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Count CF colors

    Hi All,

    Cross post here: http://www.mrexcel.com/forum/showthr...80#post2860580

    I couldn't figure out how to attached a file there, so I came here. I'm in charge of an office football picks pool. I attached my excel file. I used CF to highlight if the person got their pick correct or not. What I wanted to achieve was to count the number of cells that are highlighted green, effectively giving me the total number of picks (or "pts") that each person gets right, but I found out that that would take extensive coding. I know the cells aren't numbers, but is there an easier way to count these? Thanks!
    Attached Files Attached Files
    Last edited by kdeppe; 09-12-2011 at 10:52 AM. Reason: typo

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Count CF colors

    Try

    =SUMPRODUCT(--(B8:Q21=B5:Q5))

  3. #3
    Registered User
    Join Date
    07-31-2011
    Location
    Massachusetts, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Count CF colors

    Perfect! Thanks Bob

  4. #4
    Registered User
    Join Date
    07-31-2011
    Location
    Massachusetts, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Count CF colors

    One more update-

    So if there a tie, the winner is decided by a tiebreaker. The tiebreaker is being closest to the total score of the last game of the week. You'll see I added a score to the last game at the top, then summed for the total. I added some other columns to try to index-match and output one winner. I wanted to match the high total pts score (12) with the lower number in Col T. You'll see that there are two 12's, matched with a 26 and 7 respectively in Col T. I was trying to output Person7 because they are the winner. Is this possible?

    Updated excel sheet attached
    Attached Files Attached Files
    Last edited by kdeppe; 09-12-2011 at 12:59 PM.

  5. #5
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Count CF colors

    tRY THIS ARRAY FORMULA

    =INDEX(A:A,MIN(IF(IF(R8:R21=MAX(R8:R21),T8:T21)=MIN(IF(R8:R21=MAX(R8:R21),T8:T21)),ROW(R8:R21))))

  6. #6
    Registered User
    Join Date
    07-31-2011
    Location
    Massachusetts, USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Count CF colors

    Perfect again! Thanks again Bob!

+ 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