+ Reply to Thread
Results 1 to 5 of 5

Count Max Times a Number Continiously Repeated

  1. #1
    Valued Forum Contributor
    Join Date
    05-23-2011
    Location
    Lahore PK
    MS-Off Ver
    Excel 2007, 2013
    Posts
    627

    Count Max Times a Number Continiously Repeated

    Hi all
    I want to calculated maximum times a number is continuously repeated in a column without a helper column
    see attach file

    thanks in advance
    Attached Files Attached Files
    Last edited by Azam Ali; 10-13-2011 at 11:48 PM.
    Azam
    If you want to say Thank you to a member, click the reputation icon (Star) in the left bottom of the post.
    For prompt answer, be descriptive, concise, short, direct, and to-the-point.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Count Max Times a Number Continiously Repeated

    In cell G5 put the formula =MAX(FREQUENCY(IF(A2:A37=$G$4,ROW(A2:A37)),IF(A2:A37<>$G$4,ROW(A2:A37))))

    You must use Ctrl-Shift-Enter when you put this formula in, not just enter.

    Much kudos to NBVC, who told me how to do this.

  3. #3
    Registered User
    Join Date
    12-24-2009
    Location
    Istanbul
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Count Max Times a Number Continiously Repeated

    good solve, thanks.

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

    Re: Count Max Times a Number Continiously Repeated

    Quote Originally Posted by Andrew-R View Post
    In cell G5 put the formula =MAX(FREQUENCY(IF(A2:A37=$G$4,ROW(A2:A37)),IF(A2:A37<>$G$4,ROW(A2:A37))))
    You must use Ctrl-Shift-Enter when you put this formula in, not just enter.
    Much kudos to NBVC, who told me how to do this.
    Thanks Andrew for excelent solution
    Thanks Azam Ali for helping me to raise new thread.

  5. #5
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Count Max Times a Number Continiously Repeated

    My answer was ripped off, wholesale, from this post by NBVC, so he deserves the credit.

+ 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