+ Reply to Thread
Results 1 to 3 of 3

count and restart formula with two elements

  1. #1
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    count and restart formula with two elements

    i need a formula to count and restart counting when other element comes
    example

    1 1 1 2 2 2 2 2 1 2 1 1 1 1 1
    1 2 3 1 2 3 4 5 1 1 1 2 3 4 5

    if first 1 is at A1 which is the formula at A2?
    Attached Files Attached Files

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: count and restart formula with two elements

    Try this in D7 and copy across;
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,513

    Re: count and restart formula with two elements

    In D7 then dragged across.

    =IF(D5=C5,C7+1,1)
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. [SOLVED] Restart count function after meeting condition
    By Jepri in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-18-2017, 03:38 AM
  2. vba code for count restart formula if condition
    By pedersenn in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-18-2017, 02:29 AM
  3. [SOLVED] Restart count everytime value in adjacent column changes
    By Niklasie in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-06-2017, 07:24 AM
  4. Restart a Count within a Column
    By cookthebooks80 in forum Excel General
    Replies: 3
    Last Post: 07-06-2014, 11:46 AM
  5. count sessions then restart 365 days after - help
    By itsnotfair in forum Excel General
    Replies: 2
    Last Post: 06-29-2011, 09:31 AM
  6. Replies: 10
    Last Post: 10-10-2009, 07:30 PM

Tags for this Thread

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