+ Reply to Thread
Results 1 to 4 of 4

random character gen... but how do i stop it?

  1. #1
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    1

    random character gen... but how do i stop it?

    Hello,

    so what i need is a 6 digit alpha numeric random (1000 entries)

    so from some searching i figured that it should be...

    =MID(A1,1+INT(RAND()*LEN(A1)),1)&MID(A1,1+INT(RAND ()*LEN(A1)),1)&MID(A1,1+INT(RAND()*LEN(A1)),1)&MID (A1,1+INT(RAND()*LEN(A1)),1)&MID(A1,1+INT(RAND()*L EN(A1)),1)&MID(A1,1+INT(RAND()*LEN(A1)),1)


    where a1 = 1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN OPQRSTUVWXYZ


    but when i fill down it auto it to a2 , then a3 etc... how do i stop that?



    i might delete out the o O and 0 cause it gets confusing...

    also, it re-randomizes everytime i open the file... is there a way to stop it?

    any help is appreciated.

    thanks

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

    Re: random character gen... but how do i stop it?

    it re-randomizes everytime i open the file... is there a way to stop it?
    Copy and paste as values.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,167

    Re: random character gen... but how do i stop it?

    Change A1 to $A$1

    Not sure you can stop it unless you switch calculation to manual


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: random character gen... but how do i stop it?

    also, it re-randomizes everytime i open the file... is there a way to stop it?
    Unless you have calcs set to manual, it will also recal with every workbook change (entering or editing something in a cell, pressing F9 etc)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. 2 random character.
    By sr_88 in forum Excel General
    Replies: 1
    Last Post: 01-08-2013, 12:43 AM
  2. Random character/password
    By rx123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-28-2009, 05:57 PM
  3. Add random character to a string
    By blondeness in forum Excel General
    Replies: 3
    Last Post: 03-01-2007, 05:40 PM
  4. Random 8 character ID number
    By KennyS in forum Excel General
    Replies: 3
    Last Post: 08-15-2006, 04:55 PM
  5. I WANT TO ADD A TWO RANDOM CHARACTER SEQUENCE TO A SET OF ROWS
    By XLSUSER in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2005, 06:10 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