+ Reply to Thread
Results 1 to 4 of 4

Need help counting the unique digits ina list of numbers

  1. #1
    Registered User
    Join Date
    11-18-2009
    Location
    29501
    MS-Off Ver
    Excel 2003
    Posts
    4

    Need help counting the unique digits ina list of numbers

    Here is an example.
    What forumula would I use?
    1's 2's 3's 4's 5's 6's 7's 8's 9's 0's
    List 6 2 2 2 2 0 0 0 0 1 Number of digits
    1
    2
    3
    4
    5
    10
    12
    13
    14
    15

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Need help counting the unique digits ina list of numbers

    well for a simple sample like that
    Attached Files Attached Files
    Last edited by martindwilson; 05-09-2013 at 07:03 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Need help counting the unique digits ina list of numbers

    If data is in A2:A10 and a specific digit in C1 then this formula will give a count of that digit

    =SUMPRODUCT(LEN($A$2:$A$10)-LEN(SUBSTITUTE($A$2:$A$10,C1,"")))
    Audere est facere

  4. #4
    Registered User
    Join Date
    11-18-2009
    Location
    29501
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Need help counting the unique digits ina list of numbers

    Quote Originally Posted by daddylonglegs View Post
    If data is in A2:A10 and a specific digit in C1 then this formula will give a count of that digit

    =SUMPRODUCT(LEN($A$2:$A$10)-LEN(SUBSTITUTE($A$2:$A$10,C1,"")))
    Awesome formula! Worked on my Test sample and the list of 48 numbers I needed digits for!

    Cheers!

+ 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