+ Reply to Thread
Results 1 to 3 of 3

Count Repeated Occurrences in a Column

Hybrid View

  1. #1
    Registered User
    Join Date
    08-24-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    365
    Posts
    38

    Count Repeated Occurrences in a Column

    Hi again,
    I am looking for a formula (I have looked and looked)
    That will display the "added" repeated occurrences
    This is what I want (Manually entered)
    Heads or Tails-Heads-Tails-Evens
    HEADS WON 2
    HEADS WON 2
    TAILS WON 1
    HEADS WON 2
    HEADS WON 2
    TAILS WON 1
    EVENS WON 1
    TAILS WON 4
    TAILS WON 4
    TAILS WON 4
    TAILS WON 4
    HEADS WON 3
    HEADS WON 3
    HEADS WON 3
    TAILS WON 3
    TAILS WON 3
    TAILS WON 3
    HEADS WON 1
    EVENS WON 1

    Thanks again
    David
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Count Repeated Occurrences in a Column

    perhaps with a helper columm,
    F2 =IF(B2=B1,F1,A2)
    G2= =B2&" "&COUNTIF(F:F,F2)

    Although you have 2 draw number 228 at the bottom, I assume its 229

    Regards

    Dav
    Last edited by davsth; 12-05-2016 at 07:24 AM.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Count Repeated Occurrences in a Column

    C2=
    =IF($B2="HEADS WON",IF($B2=$B1,C1,COUNTIF($B2:INDEX($B2:$B$20,IFERROR(MATCH(0,INDEX(($B2:$B$20=$B2)+0,0),0),MAX(INDEX(ROW($B$2:$B$20),0))-ROW($B2)+1)),$B2)),"")
    D2
    =IF($B2="TAILS WON",IF($B2=$B1,D1,COUNTIF($B2:INDEX($B2:$B$20,IFERROR(MATCH(0,INDEX(($B2:$B$20=$B2)+0,0),0),MAX(INDEX(ROW($B$2:$B$20),0))-ROW($B2)+1)),$B2)),"")
    E2
    =IF($B2="EVENS WON",IF($B2=$B1,E1,COUNTIF($B2:INDEX($B2:$B$20,IFERROR(MATCH(0,INDEX(($B2:$B$20=$B2)+0,0),0),MAX(INDEX(ROW($B$2:$B$20),0))-ROW($B2)+1)),$B2)),"")
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ 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. Replies: 7
    Last Post: 04-01-2016, 03:27 PM
  2. [SOLVED] Count duplicate occurrences based on another column
    By SHUTTEHFACE in forum Excel General
    Replies: 20
    Last Post: 03-31-2015, 11:59 AM
  3. Count occurrences based on criteria in another column
    By nwapple in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2013, 09:53 PM
  4. Replies: 8
    Last Post: 05-15-2013, 04:50 PM
  5. Replies: 5
    Last Post: 09-18-2011, 10:44 PM
  6. Count Number of Occurrences in a Column
    By anniejhsu in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-31-2006, 04:35 AM
  7. Count occurrences of values in a column??!!
    By me123 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-10-2006, 03:40 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