+ Reply to Thread
Results 1 to 11 of 11

Generating Random String from Text in Cells

Hybrid View

  1. #1
    Registered User
    Join Date
    01-18-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Generating Random String from Text in Cells

    Quote Originally Posted by yudlugar View Post
    =LOWER("g4a"&MID(CONCATENATE(A1,B1),RANDBETWEEN(1,LEN(CONCATENATE(A1,B1))),1)&MID(CONCATENATE(A1,B1),RANDBETWEEN(1,LEN(CONCATENATE(A1,B1))),1)&MID(CONCATENATE(A1,B1),RANDBETWEEN(1,LEN(CONCATENATE(A1,B1))),1)&MID(CONCATENATE(A1,B1),RANDBETWEEN(1,LEN(CONCATENATE(A1,B1))),1)&MID(CONCATENATE(A1,B1),RANDBETWEEN(1,LEN(CONCATENATE(A1,B1))),1))

    Assuming the first name is in A1 and last name is in B1
    Just tried this and it did the trick! Thank you!

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Generating Random String from Text in Cells

    To get use each character only once I can't get it in a single cell formula but I think this works:
    A1: first name
    B1: last name
    C1: =LOWER("g4a"&MID(CONCATENATE(A1,B1),RANK(D1,D1:Y1),1)&MID(CONCATENATE(A1,B1),RANK(E1,D1:Y1),1)&MID(CONCATENATE(A1,B1),RANK(F1,D1:Y1),1)&MID(CONCATENATE(A1,B1),RANK(G1,D1:Y1),1)&MID(CONCATENATE(A1,B1),RANK(H1,D1:Y1),1))
    D1: =IF(COLUMN(A1)<LEN(CONCATENATE($A1,$B1)),RAND(),"")
    Then copy D1 across the row to whatever is a sensible limit for maximum characters in a name (say to BA1...)

+ 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. Generating a list of Random numbers of random length...
    By Growl in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2013, 12:10 PM
  2. 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
  3. Randomly placing 5 same alphabet in a range of 20 cells. (Random Generating)
    By Excript in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-12-2009, 09:52 PM
  4. Replies: 1
    Last Post: 10-30-2008, 07:40 PM
  5. remove random spaces in a text string
    By mariusescu in forum Excel General
    Replies: 2
    Last Post: 07-10-2008, 03:32 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