+ Reply to Thread
Results 1 to 6 of 6

Counting reoccuring numbers.

  1. #1
    Registered User
    Join Date
    11-28-2014
    Location
    LA california
    MS-Off Ver
    07??
    Posts
    3

    Counting reoccuring numbers.

    Hi,

    As it states i need help counting reoccuring numbers, specifically phone numbers. My list consist of multiple phone numbers and i what i want to do is sort them by 25 each.

    basically it looks like this (each of these are phone numbers 1 is ex 111-1111-1111 2 is another etc...)

    1
    2
    2
    2
    3
    4
    5
    5
    6

    So this would be a total of 6 numbers instead of 9. I cant even access my pivot tables for some reason!

    Thank you if you need for clarification please let me know!

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Counting reoccuring numbers.

    Did you tried.. "Remove Duplicate"..
    Can we have a sample file..
    Do you want .. this using formula / macro..

    Please elaborate...
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Registered User
    Join Date
    11-28-2014
    Location
    LA california
    MS-Off Ver
    07??
    Posts
    3

    Re: Counting reoccuring numbers.

    I cannot remove duplicate just for documentation purposes, and cannot provide a sample but ill give another example of what im working with

    This is how it would look:

    xxx-xxx-xxx1
    xxx-xxx-xxx1
    xxx-xxx-xxx2
    xxx-xxx-xxx3
    xxx-xxx-xxx4
    xxx-xxx-xxx4

    So im guessing a formula would be best? I want it to count the total numbers of this partciular list a 4 numbers not 6.

    Which ever method is easier would help.

    Thank you

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Counting reoccuring numbers.

    Row\Col
    A
    B
    1
    4
    A1: =SUMPRODUCT(1/COUNTIF(A3:A8, A3:A8))
    2
    3
    xxx-xxx-xxx1
    4
    xxx-xxx-xxx1
    5
    xxx-xxx-xxx2
    6
    xxx-xxx-xxx3
    7
    xxx-xxx-xxx4
    8
    xxx-xxx-xxx4


    It's not a friendly formula performance-wise; if you have 10,000 numbers, it has to do 100,000,000 comparisons.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Counting reoccuring numbers.

    Here's another one. It's longer but is more efficient over large data sets.

    Data Range
    A
    B
    C
    1
    Phone
    ------
    Count
    2
    111-111-1111
    6
    3
    222-222-2222
    4
    222-222-2222
    5
    222-222-2222
    6
    333-333-3333
    7
    444-444-4444
    8
    555-555-5555
    9
    555-555-5555
    10
    666-666-6666


    This array formula entered in C2:

    =SUM(IF(FREQUENCY(MATCH(A2:A10,A2:A10,0),ROW(A2:A10)-ROW(A2)+1),1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    11-28-2014
    Location
    LA california
    MS-Off Ver
    07??
    Posts
    3

    Re: Counting reoccuring numbers.

    Quote Originally Posted by shg View Post
    Row\Col
    A
    B
    1
    4
    A1: =SUMPRODUCT(1/COUNTIF(A3:A8, A3:A8))
    2
    3
    xxx-xxx-xxx1
    4
    xxx-xxx-xxx1
    5
    xxx-xxx-xxx2
    6
    xxx-xxx-xxx3
    7
    xxx-xxx-xxx4
    8
    xxx-xxx-xxx4


    It's not a friendly formula performance-wise; if you have 10,000 numbers, it has to do 100,000,000 comparisons.
    Quote Originally Posted by Tony Valko View Post
    Here's another one. It's longer but is more efficient over large data sets.

    Data Range
    A
    B
    C
    1
    Phone
    ------
    Count
    2
    111-111-1111
    6
    3
    222-222-2222
    4
    222-222-2222
    5
    222-222-2222
    6
    333-333-3333
    7
    444-444-4444
    8
    555-555-5555
    9
    555-555-5555
    10
    666-666-6666


    This array formula entered in C2:

    =SUM(IF(FREQUENCY(MATCH(A2:A10,A2:A10,0),ROW(A2:A10)-ROW(A2)+1),1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.


    Thank you guys!! Ill def be trying this out on Monday and will get back then!

+ 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. Reoccuring Formulas
    By ugzruben in forum Excel General
    Replies: 2
    Last Post: 10-05-2010, 03:08 PM
  2. Analyzing (reoccuring) numbers
    By Timmer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-02-2010, 05:06 PM
  3. How to make a reoccuring if then
    By Calvin Witcher in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-16-2008, 07:10 AM
  4. Counting reoccuring dates.
    By R-P in forum Excel General
    Replies: 9
    Last Post: 05-23-2006, 08:55 AM
  5. Help creating list of Reoccuring names
    By Alphabet in forum Excel General
    Replies: 1
    Last Post: 01-06-2006, 07:40 AM

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