+ Reply to Thread
Results 1 to 8 of 8

count only after number 2 appears

  1. #1
    Registered User
    Join Date
    03-30-2013
    Location
    Romania
    MS-Off Ver
    Excel 2016
    Posts
    25

    count only after number 2 appears

    Hi everybody, i want to count every number except 0 and 2, and everytime after 2 apears i want to start counting again.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: count only after number 2 appears

    Try attached

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Ochimus; 11-27-2020 at 09:26 PM.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: count only after number 2 appears

    Try in C2:

    Please Login or Register  to view this content.
    Drag down
    Attached Files Attached Files
    Quang PT

  4. #4
    Registered User
    Join Date
    03-30-2013
    Location
    Romania
    MS-Off Ver
    Excel 2016
    Posts
    25

    Re: count only after number 2 appears

    yes, but u forget that i still got 0 number in the A column

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,777

    Re: count only after number 2 appears

    Which helper are you addressing?

    A 'thank you' might have been nice to start with ...
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    03-30-2013
    Location
    Romania
    MS-Off Ver
    Excel 2016
    Posts
    25

    Re: count only after number 2 appears

    Sorry, i was talking with bebo021999. I cant use the formula in C2 because i need to put it from C1, and if i start from there it will not work because i have a 0 in A1. I need to use this formula for some columns and in all of them i have more than one 0 in the first rows.

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

    Re: count only after number 2 appears

    Pl see file. ARRAY formula in E3 then copy down.

    =IF(AND(A3<>0,A3<>2),SUM(--((INDEX($A$2:$A3,IFERROR(MATCH(2,--1/($A$2:$A3=2),1)+1,ROW($A$2))):$A3)>0)),"")
    To enter ARRAY formula
    Copy and paste the formula in cell
    Press F2
    Press Ctrl+Shift+Enter together
    Excel covers the formula with {}.
    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.

  8. #8
    Registered User
    Join Date
    03-30-2013
    Location
    Romania
    MS-Off Ver
    Excel 2016
    Posts
    25

    Re: count only after number 2 appears

    Thank you kvsrinivasamurthy, is exactly what y need.

+ 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. Count number of x if it appears in y
    By Hannah12 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-12-2020, 02:46 AM
  2. [SOLVED] Count number of times a number appears with count start from next cell of last occurr
    By lesliewheeler in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-29-2018, 09:34 AM
  3. [SOLVED] Count specific number in a table when given number appears in same row (modified)
    By Karnik in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 05-10-2015, 04:14 AM
  4. count the number of times a number appears in a specific range
    By myjebay1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2013, 11:01 AM
  5. How to count the number of times something appears?
    By Ipinho100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2012, 08:08 AM
  6. Replies: 5
    Last Post: 11-22-2010, 06:31 PM
  7. [SOLVED] Count Number of Times Something appears
    By Mark B in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-29-2005, 04: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