+ Reply to Thread
Results 1 to 4 of 4

i need a formula to count how manny 0 are after each 1 and show the bigest value

Hybrid View

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

    i need a formula to count how manny 0 are after each 1 and show the bigest value

    Hey guys, i'm stuck at this for 4 days. I need a formula to count how many 0's are after each 1, and then to show me the bigest value. Thanksexample.xlsx

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: i need a formula to count how manny 0 are after each 1 and show the bigest value

    In C3, copied down (and across) use this...
    =IF(A3<>0,0,C2+1)

    Then a simple =MAX(C3:C22) in C1 and D1 will give you what you need
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: i need a formula to count how manny 0 are after each 1 and show the bigest value

    Thanks, it's good

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: i need a formula to count how manny 0 are after each 1 and show the bigest value

    Happy to help.

    If this answers your question, please mark this thread solved using the thread tools just above your 1st post

+ 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