+ Reply to Thread
Results 1 to 4 of 4

Random generating a 10 digit number that only contains specific digits.

  1. #1
    Registered User
    Join Date
    07-29-2016
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    79

    Random generating a 10 digit number that only contains specific digits.

    Hello, is it possible to randomly generate a 10 digit number that will only contain a specified set of numbers.

    For example, randomly generate a 10 digit number that only contains the digits 1,2,7,8,9
    Results:

    1789127981
    9781277819
    9981227178
    9977127897

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Random generating a 10 digit number that only contains specific digits.

    =index($a$1:$a$20,randbetween(1,5))
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-29-2016
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    79

    Re: Random generating a 10 digit number that only contains specific digits.

    Wow, this is very clever! Thank you so much tim201110!

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Random generating a 10 digit number that only contains specific digits.

    In "A2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This is for 10 digit number in one cell.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This is for 1 digit number in one cell


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

+ 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. Replies: 5
    Last Post: 06-04-2015, 03:25 PM
  2. How to add 2 digits to the end of a four digit number
    By Gordond54 in forum Excel General
    Replies: 6
    Last Post: 01-01-2013, 04:19 PM
  3. Replies: 4
    Last Post: 09-16-2012, 10:26 AM
  4. Fining the first 2 digits of a 6 digit number
    By adam8090 in forum Excel General
    Replies: 10
    Last Post: 05-18-2011, 10:41 AM
  5. Adding first and last digits of a four digit number in vba
    By CollegeKidd in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-13-2011, 06:58 PM
  6. Replies: 2
    Last Post: 06-17-2010, 08:36 PM
  7. Generating a Random Number of Random Numbers
    By Garrus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2010, 09:39 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