+ Reply to Thread
Results 1 to 8 of 8

Identify numbers that appear 10 times consecutively

  1. #1
    Registered User
    Join Date
    10-20-2012
    Location
    houston
    MS-Off Ver
    Excel 2003
    Posts
    6

    Identify numbers that appear 10 times consecutively

    Hello,

    I am looking for a formula or a macro that will allow me to determine when the same number appear more than ten time consecutively. For example:
    1 2 3 1 1 1 1 1 1 1 1 1 1 1 4 3 -> = 1 (more than ten times consecutively)
    1 1 1 1 2 1 1 1 1 3 1 1 1 1 4 2 -> = 0 (less than ten times consecutively)

    As you can see, I am not looking for a frequency.
    The formula should work for the following numbers : -77, 1, 2, 3, 4, 5, 6, 7
    and for blocs of 20 columns.

    Thanks for your help!
    Best

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Identify numbers that appear 10 times consecutively

    Please confirm highlighting the cells with conditional formatting is your expectation? if so please attach a sample workbook and by highlighting the cells manually for 2 or 3 rows.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    10-20-2012
    Location
    houston
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Identify numbers that appear 10 times consecutively

    No, I don't want to highlight the cells. I would like to have on a separate column either the number 1 (= there is more than 10 times the same number consecutively in the previous 20 columns) or 0 (= there is not more than 10 times the same number consecutively in the previous 20 columns)
    Attached Files Attached Files

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Identify numbers that appear 10 times consecutively

    May be this..

    In V2 cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag it down

    In W2 cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag it down

    Refer the attached file for details.

    Hope that helps!
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-20-2012
    Location
    houston
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Identify numbers that appear 10 times consecutively

    Thank you for your help! Unfortunately, there is a mistake in the formula and it is not working (although it works for the -77, it doesn't work for the other numbers).
    Do you think that you can fix it?
    Last edited by bing77025; 10-24-2012 at 09:47 AM.

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Identify numbers that appear 10 times consecutively

    Yes, please post the formula with your expectation.

  7. #7
    Registered User
    Join Date
    10-20-2012
    Location
    houston
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Identify numbers that appear 10 times consecutively

    So, this is the formula that is in the column w :

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I need the formula to say "1" if in the side cell in column v there is either:
    11111111111 (-> >10 times 1 consecutively)
    22222222222
    33333333333
    44444444444
    55555555555
    66666666666
    77777777777
    -77-77-77-77-77-77-77-77-77-77-77

    Otherwise, it must say "0"

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Identify numbers that appear 10 times consecutively

    Not sure whether this what you are expecting to get, but try this in W2 cell

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hope that helps!

+ 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