+ Reply to Thread
Results 1 to 11 of 11

How to shuffle all data in table

  1. #1
    Registered User
    Join Date
    12-06-2016
    Location
    Hawaii
    MS-Off Ver
    2010
    Posts
    20

    How to shuffle all data in table

    Hi Excel Gurus -

    Need some help trying to shuffle all the data in the table I provided. I attempted to use the "=rand()" function but I did not like it. In the example, there the data is in B2:B4, C2:C4, and D2:D4. I want to shuffle all the date but keep the data in the same column. Hope I explained this well...please help, thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,469

    Re: How to shuffle all data in table

    Use the RAND function as indicated on Sheet 1
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-06-2016
    Location
    Hawaii
    MS-Off Ver
    2010
    Posts
    20

    Re: How to shuffle all data in table

    Thank you...but I already tried that function as stated in my original post. Reason I don't like it is because it changes the titles in column A

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,469

    Re: How to shuffle all data in table

    Ok. I see what you mean about the titles in the first column. Hmmm ....

    If you highlight just the data and rand #'s in Col E, then perform the sort, it works.
    Last edited by Logit; 12-09-2016 at 10:09 PM.

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,469

    Re: How to shuffle all data in table

    Here's a VBA method of accomplishing the goal:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-06-2016
    Location
    Hawaii
    MS-Off Ver
    2010
    Posts
    20

    Re: How to shuffle all data in table

    Man, thank you! You are GOOD!!!!!

  7. #7
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,469

    Re: How to shuffle all data in table

    If this solves your question, please mark the thread as solved.

    Your welcome.

    Have a Merry Christmas.

  8. #8
    Registered User
    Join Date
    12-06-2016
    Location
    Hawaii
    MS-Off Ver
    2010
    Posts
    20

    Re: How to shuffle all data in table

    Im having trouble getting that "Random" button...you got a youtube link you can provide?

  9. #9
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,469

    Re: How to shuffle all data in table

    Im having trouble getting that "Random" button
    Don't understand what you are asking.

    No YouTube ... sorry
    Last edited by Logit; 12-09-2016 at 10:44 PM.

  10. #10
    Registered User
    Join Date
    12-06-2016
    Location
    Hawaii
    MS-Off Ver
    2010
    Posts
    20
    Quote Originally Posted by Logit View Post
    Don't understand what you are asking.

    No YouTube ... sorry
    Apologies for my lack of excel knowledge. I was able to load the VBA code but how do I get that "Randomize" but you input on the last example?

  11. #11
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,469

    Re: How to shuffle all data in table

    I'm using Excel 2007 so I hope your version looks the same.

    First, make certain the code is entered into the module.

    Click on DEVELOPER tab up top.

    Click on CONTROLS / INSERT

    Select BUTTON, top left corner (click on it).

    Move mouse to clear area on sheet, click again. Button should now appear on sheet.

    If you already have the code entered into the module, when the button appears, another menu box will appear. Click the macro name (Randomize) in the middle of the menu box (Listbox) then click OK.

    Now, highlight at least 1 Col and 2 Rows, then click the button.

+ 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. [SOLVED] shuffle grid of data
    By Traymond in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-23-2016, 04:26 AM
  2. [SOLVED] Shuffle Name of processors and generate 5 percent of worked data by processor
    By oct2mine in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-07-2015, 09:30 AM
  3. [SOLVED] Shuffle Right
    By keen2xl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2013, 01:40 AM
  4. Shuffle Row Position after Data Refresh
    By thetwai in forum Excel General
    Replies: 3
    Last Post: 07-16-2013, 04:07 AM
  5. shuffle 2 sets of data into 1
    By MrToast in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-16-2011, 05:26 PM
  6. how do i shuffle the numbers in a table?
    By inkap in forum Excel General
    Replies: 2
    Last Post: 10-02-2005, 10:05 PM
  7. Shuffle the cells!
    By M H in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-02-2005, 04:05 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