Closed Thread
Results 1 to 8 of 8

Rolling Count Formula with Reset

  1. #1
    Forum Contributor
    Join Date
    01-29-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    157

    Rolling Count Formula with Reset

    I need some help constructing a formula to help do the follwing:

    I have a set of data in Col F:
    A
    B 1
    B 2
    B 3
    A 1
    A 2
    B 1
    B 2
    B 3
    B 4
    A 1


    The numbers are what I am trying to accomplish in Row E. I am basically wanting to a conescutive occurence count.
    Last edited by DonkeyOte; 01-05-2011 at 03:42 PM. Reason: modified title slightly

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Need Help With a Count Formula

    With your posted data in A1:A11

    Try this:
    Please Login or Register  to view this content.
    Copy that formula down through B11

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Need Help With a Count Formula

    Well assuming 1 appears upon first change

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    01-29-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    157

    Re: Rolling Count Formula with Reset

    YES! That's exactly what I was looking for.. works to perfection.. Thanks a ton!

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Need Help With a Count Formula

    Sometimes I look at what I posted and think: "some idiot logged-in as me and posted a stupid formula."...then I remember...Oh, yeah, that was me :\

  6. #6
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: Rolling Count Formula with Reset

    B1 1
    B1 2
    B1 3
    A 1 1
    A 1 2
    B 1 1
    B 2 1
    B 2 2
    B 4 1
    A 1 3

    =COUNTIF(E$7:E7,E7) and dragged down
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  7. #7
    Registered User
    Join Date
    10-17-2014
    Location
    Bethlehem, South Africa
    MS-Off Ver
    MS Office 2013
    Posts
    1

    Re: Rolling Count Formula with Reset

    Please help my with a calculation

    I have 6 columns with weekly kilometer readings (1 - carry over from last month and the the other 5 is the possible weeks per month)

    In the seventh column I nee to calculate the kilometers up to date for the month...

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Rolling Count Formula with Reset

    Pls start your own thread as per forum rules.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

Closed 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