+ Reply to Thread
Results 1 to 7 of 7

Random Intergers

Hybrid View

  1. #1
    Registered User
    Join Date
    09-26-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    21

    Random Intergers

    Hello everyone,

    I need to create an 8 digit random integer with Char (84) leading. Can anyone assist me with the formula? I have manual calculation turned off..


    Thanks!!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Random Intergers

    Try..

    =RANDBETWEEN(84000000,84999999)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    09-26-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Random Intergers

    Thanks - I should have known that - do you know how to write the function to add character 84 which is the letter "T" in front of these numbers?

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Random Intergers

    to add character 84 which is the letter "T" in front of these numbers?
    please elaborate..perhaps an example?

  5. #5
    Registered User
    Join Date
    09-26-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Random Intergers

    Each random integer should have the letter T in front of the numbers. i.e. T84934675 Just wondering if there is a way to write it in the formula? Thanks

  6. #6
    Registered User
    Join Date
    09-26-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Random Intergers

    Thank you Chemist B --- I appreciate it

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Random Intergers

    =CHAR(84)&RANDBETWEEN(10000000,99999999) or just "T"&RANDBETWEEN(10000000, 99999999)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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