+ Reply to Thread
Results 1 to 10 of 10

Extract unique digits within number

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Extract unique digits within number

    Hello everyone
    I have numbers in range("A2:A" & Last Row)
    I need to get the unique digits within each cell
    For example:
    A2 : 5967887965658
    the desired results would be to adjacent columns

    Please Login or Register  to view this content.
    Thanks advanced for help
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Extract unique digits within number

    maybe so
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Extract unique digits within number

    Thank you very much for this swift and great solution
    It works as expected exactly
    Best Regards

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Extract unique digits within number

    I need to create UDF function to count unique digits within the number
    Sorry for disturbing you again

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Extract unique digits within number

    one way
    Please Login or Register  to view this content.

  6. #6
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Extract unique digits within number

    UDF returning array :

    Please Login or Register  to view this content.
    Usage :
    Select C2:J2 for example, then enter this array formula (confirmed with Ctrl Shift Enter keys) :
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If the selected range to hold the array is too little (for example C2:E2), the last cell will be filled with this text : "more ...", indicating that you must enlarge the range.
    The range itself doesn't need to be row based, but you can select column based (C2:C10 for example), or rectangular area (B2:C3 for example)

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Extract unique digits within number

    Thank you very much Mr. Nilem for this great UDF function ...
    As for my example is perfect as I have only digits not characters ..But what if I need to count the digits only (unique digits not all the digits)?

    Thank you very much Mr. Karedog for this new gift .. It is amazing and fascinating
    Best Regards

  8. #8
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Extract unique digits within number

    You are welcome, glad I can help.


    Regards

  9. #9
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Extract unique digits within number

    Quote Originally Posted by YasserKhalil View Post
    ..But what if I need to count the digits only ..
    Please Login or Register  to view this content.

  10. #10
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Extract unique digits within number

    Thank you very much for all this great and continuous help
    Now it is perfect
    Kind Regards

+ 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. Extract unique value from number
    By sumansau007 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-08-2014, 06:42 AM
  2. [SOLVED] How to extract digits from a string?
    By GIS2013 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-17-2013, 09:28 AM
  3. Replies: 15
    Last Post: 11-11-2013, 08:21 PM
  4. 5 digits number extract
    By lukasz_rz in forum Excel General
    Replies: 0
    Last Post: 10-18-2013, 04:53 AM
  5. To get the unique digits of a number in VBA
    By Magic_Doctor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-10-2009, 06:02 PM
  6. Replies: 5
    Last Post: 12-08-2008, 11:47 AM
  7. [SOLVED] Extract Digits Questions
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-27-2005, 06:40 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