+ Reply to Thread
Results 1 to 2 of 2

Need a formula for random concatenation

  1. #1
    Registered User
    Join Date
    08-29-2016
    Location
    London
    MS-Off Ver
    2016 for Mac
    Posts
    1

    Need a formula for random concatenation

    Hi all!

    Suggest please

    1. how randomly concatenate digits in six (or more) different cells in order to generate 6 (or more) digit promo code? Can I make it happen with formulas only or need to use VBA?

    2. How to adjust formula CHAR(RANDBETWEEN(65,90)) in green cell in order to exclude from the results I and O digits?

    Please see the Excel file attached.

    Thanks in advance for help!
    Attached Files Attached Files
    Last edited by John7777; 08-29-2016 at 03:47 PM.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Need a formula for random concatenation

    In B2, C2, D2 and E2 =MID("ABCDEFGHJKLMNPQRSTUVWXYZ",RANDBETWEEN(1,24),1)

    In F2 and G2 =RANDBETWEEN(0,9)

    If you want to exclude 0 and 1 as well as I and O then use =RANDBETWEEN(2,9) instead.

    Then concatenate the results.

    =B2&C2&D2&E2&F2&G2

+ 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: 09-16-2015, 09:24 AM
  2. [SOLVED] help with concatenation formula
    By ammartino44 in forum Excel General
    Replies: 4
    Last Post: 04-09-2015, 11:56 PM
  3. Replies: 8
    Last Post: 01-26-2010, 07:30 PM
  4. Formatting a Cell with concatenation Formula
    By cjconnor24 in forum Excel General
    Replies: 3
    Last Post: 01-23-2008, 07:51 AM
  5. Concatenation of a variable inside a formula
    By ksmith99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-14-2006, 04:14 PM
  6. formula to apply concatenation to successive rows of data
    By Devo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-24-2006, 12:45 PM
  7. [SOLVED] Converting concatenation formula to text
    By FrigidDigit in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-20-2005, 05:05 AM

Tags for this Thread

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