+ Reply to Thread
Results 1 to 4 of 4

Creating controlled random numbers across multiple columns

  1. #1
    Forum Contributor
    Join Date
    04-04-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    204

    Creating controlled random numbers across multiple columns

    Hi All,

    I am working on a data sheet (Sheet1) with one column (ColA) which has data groups/blocks that are separated with one empty row, as per attached example: random_numbers_example.xlsx

    Data blocks are sequenced numbers that always start with number 1 and vary in size: one block could be 300 rows, another could only be 6 rows.

    What I am after is to create extra five columns (B, C, D, E, F) with random numbers for each data block (as per Sheet2). The seeding number for creating random numbers is the same number that exists in ColA for each block.

    The result is six columns (A:F) of data for each block with NO REPEATED NUMBERS across each row of data block.

    Can I be helped with this problem, please?

    Many thanks in advance.

    T.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Creating controlled random numbers across multiple columns

    This should do it:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    04-04-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    204

    Re: Creating controlled random numbers across multiple columns

    Thank you very much JBeaucaire for such masterpiece. It ran like magic, smoothly with no problem at all. Your code did resolve my problem, for which I do gratefully thank you. You do have a great input to this world.
    All the best.
    T.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Creating controlled random numbers across multiple columns

    Glad to hear it.

+ 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. Creating random numbers for bingo games
    By dcbeagle in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-11-2018, 01:39 PM
  2. Creating list of random numbers based on values in other cells
    By rossjohnston in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-01-2015, 10:08 AM
  3. [SOLVED] creating and re-creating 'random' numbers from a specific seed that can be recreated
    By OberonViking in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-15-2014, 04:13 PM
  4. Creating random numbers that add up to a specific number
    By PapaCheese in forum Excel General
    Replies: 1
    Last Post: 06-13-2012, 07:00 PM
  5. Replies: 4
    Last Post: 05-15-2010, 06:57 PM
  6. Creating Random numbers in Excel problem
    By mrosendal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2008, 08:37 AM
  7. creating random numbers
    By pikachiu132 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2005, 01:55 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