+ Reply to Thread
Results 1 to 10 of 10

i want to know how many times it repeats itself

  1. #1
    Registered User
    Join Date
    09-10-2016
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    17

    Question i want to know how many times it repeats itself

    hi guys im back again and i am learning a lot thanks to you guys anyway i have another problem still related to this thread so i wont create a new thread and instead ask it here .. i want to count how many numbers repeated itself

    example

    SjeKcnH.jpg

    i'm not sure if this is complicated but i really cant figure out how .. i was trying to tweak the codes from the previous thread i had

    http://www.excelforum.com/excel-form...of-column.html

    with no luck so pls forgive me if i havent learned that much, im still doing some more research but im also having trouble figuring out the correct terms and keywords lol (im not even sure with my thread title)

    thank you so much

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: i want to know how many times it repeats itself

    This troubled me I can't attach my file so i have external links

    hope this works

    https://simpan.ugm.ac.id/s/PXFIGwXJfpW2CDS

  3. #3
    Registered User
    Join Date
    09-10-2016
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    17

    Re: i want to know how many times it repeats itself

    well thanks a lot for your effort really i appreciate your time but i think the fault is on my side as i was not able to explain it well it does do what i want but what i actually want is to just count the consecutive repeated numbers in your example when i type from 70 - 79 it output 4 whereas it should be just 1 because the other 2 70's didnt consecutively repeat itself

    U4a1s2A.jpg


    i really apologize if i wasnt able to explain it well as english is not my native language.

    pls bare with me

    thanks

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: i want to know how many times it repeats itself

    Is this what you mean?

    Array-enter this formula in D3 and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    Row\Col
    A
    B
    C
    D
    1
    31
    Criteria
    2
    42
    From To
    3
    27
    70
    79
    2
    4
    25
    20
    29
    3
    5
    20
    40
    49
    2
    6
    11
    30
    39
    2
    7
    5
    8
    99
    9
    85
    10
    70
    11
    75
    12
    63
    13
    85
    14
    77
    15
    52
    16
    33
    17
    32
    18
    40
    19
    45
    20
    35
    21
    37
    22
    100
    23
    95
    24
    78
    Dave

  5. #5
    Registered User
    Join Date
    09-10-2016
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    17

    Re: i want to know how many times it repeats itself

    what if i want to select the entire A column? cause i have more than 3000 cells and continuously add some more

  6. #6
    Registered User
    Join Date
    09-10-2016
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    17

    Re: i want to know how many times it repeats itself

    also i just wanna add is there any other simplified formula for this? i cant make it work it just gives me #value and i am not sure what i did as i dont undersand the array enter now it gives me this value #n/a

    thanks

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: i want to know how many times it repeats itself

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Array formulas are not entered in the regular way. After pasting the formula into the formula bar commit the formula by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    what if i want to select the entire A column? cause i have more than 3000 cells and continuously add some more
    You want to avoid using whole columns. Excel would have to perform operations over more than one million cells in each copy of the formula.

    A better way would be to extend the range to something slightly larger than you think you would want. Something like
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And so far I am not able to come up with a way that is significantly simpler.

    I will continue to think on it, though.
    Last edited by FlameRetired; 09-13-2016 at 02:11 AM.

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: i want to know how many times it repeats itself

    In the attached find the original proposal on sheet1.

    In sheet two I laid the criteria ranges out in columns.

    Row\Col
    C
    D
    E
    F
    2
    70
    20
    40
    30
    3
    79
    29
    49
    39


    The numbers in question are still in column A.

    Under each of those criteria are helper columns. The formula for those entered in C4 filled down and across is
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    It generates 1s and 0s.

    Then in C1 and filled across is a simplified version of the FREQUENCY formula from earlier. Still array-entered.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    09-10-2016
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    17

    Re: i want to know how many times it repeats itself

    ok after few days of experimenting with it i was able to achieve what i want :D thank you so much

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: i want to know how many times it repeats itself

    You are welcome. Thank you for the feedback.

+ 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. Macro to return cells if cell repeats value over 5 times in a list
    By hteaford in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-01-2016, 08:36 AM
  2. Replies: 5
    Last Post: 07-21-2015, 04:49 PM
  3. Replies: 1
    Last Post: 11-15-2013, 10:59 AM
  4. Check specific range for any value that repeats itself 3 subsequent times
    By blackmilk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-01-2013, 10:42 AM
  5. [SOLVED] VBA Repeats tasks multiple times
    By djfatboyfats in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2012, 06:11 AM
  6. Replies: 5
    Last Post: 02-03-2012, 07:05 AM
  7. [SOLVED] How can I count the number of times a letter repeats in a string?
    By Wiley in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-11-2006, 02:00 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