+ Reply to Thread
Results 1 to 5 of 5

counting the occurrence of a set of continguous values

  1. #1
    Registered User
    Join Date
    04-11-2013
    Location
    British Columbia, Canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Post counting the occurrence of a set of continguous values

    I have one column of information.
    It ranges from cells A1 to A20000.
    For simplicity, the values in the cell is a 5-digit number that can range from 10000-30000.

    I would like to look only at the first three digits of the data set.
    Looking at cell A1 (value is 13245), how many occurences of '132' can I find in the range A1-A20000?
    Then looking at cell A2 (value is 16756), how many occurences of '167' can I find in the range A1-A20000?
    Continue this with each cell until cell A20000.

    Next step, I want to look only at the second, third, and fourth digits of the data set.
    So looking at cell A1 (value is 13245), how many occurences of '324' can I find in the range A1-A20000?
    Then looking at cell A2 (value is 16756), how many occurences of '675' can I find in the range A1-A20000?
    Continue this with each cell until cell A20000.

    Next step, I want to look only at the third, fourth, and fifth digits of the data set.
    So looking at cell A1 (value is 13245), how many occurences of '245' can I find in the range A1-A20000?
    Then looking at cell A2 (value is 16756), how many occurences of '756' can I find in the range A1-A20000?
    Continue this with each cell until cell A20000.

    Any help would be greatly appreciated!

    Thanks!
    Last edited by 2013April; 04-12-2013 at 12:14 AM. Reason: clarification

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: counting the occurrence of a set of continguous values

    I don't really understand what you want.

    But this will count all occurrances of 123 in the range A1 to A20.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-11-2013
    Location
    British Columbia, Canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: counting the occurrence of a set of continguous values

    Thanks for looking mehmetcik. I've editted the orginal thread to try to explain what I want to do.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: counting the occurrence of a set of continguous values

    Well that is clearer, how do you want the answers displayed?

  5. #5
    Registered User
    Join Date
    04-11-2013
    Location
    British Columbia, Canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: counting the occurrence of a set of continguous values

    column titles would be:
    original data
    first 3 digits
    # of occurrences
    next 3 digits
    # of occurrences
    next next 3 digits
    # of occurrences

    I will ultimately need to make a distribution graph.

    Thanks!
    -geneva

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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