+ Reply to Thread
Results 1 to 5 of 5

Mix/shuffle cells around

  1. #1
    Registered User
    Join Date
    06-12-2009
    Location
    Aylesbury
    MS-Off Ver
    Excel 2003
    Posts
    12

    Mix/shuffle cells around

    Hi all,

    Not very good at explaining things but here goes:

    I have three values in 100 cells: A,B & C

    Out of the 100 cells, A can be in 60, B 10 cells and C 30 cells..
    (Each Row can change, A = 50 B = 20 C = 30 - I HAVE A TOTAL OF 10 ROWS)

    Cell A1 = A all the way to A60
    Cell A61 = B all the way to A70
    Cell A71 = C to 100


    I want to mix them up
    Example:
    A1 = A
    A2=A
    A3 = C
    A4 = A
    A5 = B

    so on and so on
    Can I highlight the cells I want to mix up?


    Thanks
    Al

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Mix/shuffle cells around

    Hi,

    In Column B, enter =RAND(), copied down adjacent to your data.

    Then select columns A and B, and sort based on column B.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    06-12-2009
    Location
    Aylesbury
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Mix/shuffle cells around

    Quote Originally Posted by sweep View Post
    Hi,

    In Column B, enter =RAND(), copied down adjacent to your data.

    Then select columns A and B, and sort based on column B.

    When I do =rand() it comes up with numbers 0,1 when I drag it across?

    so it looks like this (going from L15 to L115)
    ACBABBABCCCABB ETC
    0001010001000100100 ETC

    I would like it to rand mix up:
    ACBABBABCCABB (ORIGINAL LINE)
    BBACBACACBBAA (MIXUP/SCRAMBLE/SHUFFLE)







    aL

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Mix/shuffle cells around

    Your original post suggested you had one column of data (A1:A100) that contained 100 items that needed to be randomised. If this is the case, by placing the formula =RAND() in B1:B100, and then sorting on column B, the data will randomise.

    Your latest post suggests that the data is in L15:L115.

    If this is the case,

    in M15:M115 enter the formula =RAND()
    select cells L15:M115

    Go to Data > Sort

    Choose to sort on Column M, by value

  5. #5
    Registered User
    Join Date
    06-12-2009
    Location
    Aylesbury
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Mix/shuffle cells around

    Quote Originally Posted by sweep View Post
    Your original post suggested you had one column of data (A1:A100) that contained 100 items that needed to be randomised. If this is the case, by placing the formula =RAND() in B1:B100, and then sorting on column B, the data will randomise.

    Your latest post suggests that the data is in L15:L115.

    If this is the case,

    in M15:M115 enter the formula =RAND()
    select cells L15:M115

    Go to Data > Sort

    Choose to sort on Column M, by value
    Apologies, tried the above and now works fine... thanks for all your help this is going to save me loads of work!

+ 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