## How to shuffle rows/columns/a range of cells randomly in Excel?

Supposing you have a range of cells, and now you want to shuffle the rows in a random order as below screenshot shown, how can you quickly and randomly shuffle them in Excel?

Shuffle rows/a column values with formula

#### Shuffle rows/a column values with formula

1. Select a list of cells next to you range, for instance, D1: D8, and then type this formula =RAND(), see screenshot:

2. Then press Ctrl + Enter. Now you can see there is a list of random data displayed.

3. Now you can go to Data tab, and select Sort smallest to largest or Sort largest to smallest as you need. See screenshot:

4. Then there is a popped dialog, and check Expand the selection option. And click Sort.

Till now the data range has been shuffled by rows randomly.

Then you can remove the formula cells.

However, if you want to shuffle a range of cells by columns or all cells as below screenshots shown, how can you solve it in Excel? Now go on next method, I will introduce a multifunctional tool for you to solve it easily.

#### Shuffle rows/columns/a range of cells randomly with Kutools for Excel

If you have Kutools for Excel installed, there is a utility – Sort Range Randomly can shuffle your data by entire row, entire column, or all cells of range, also can select random cells, random columns or random rows from a range.

 with more than 300 handy functions, makes your jobs more easier. Free DownloadFull features 30 days free trial

After installing Kutools for Excel, please do as below:

1. Select the range cells you want to shuffle randomly, and click Kutools > Range > Sort / Select Range Randomly. See screenshot:

2. Then in the Sort /Select Range Randomly dialog, under Sort tab, please select the option you need.

3. Then click Ok or Apply.

Sort by entire rows

Sort by entire columns

Sort cells in the range

Sort cells in each row

Sort cells in each column

With Kutools for Excel’s Sort Range Randomly utility, you can select cells randomly in a range.

### Best Office Productivity Tools

 🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions… Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ... Super Lookup: Multiple Criteria VLookup  |   Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup .... Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List .... Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ... Featured Features: Grid Focus   |  Design View   |   Big Formula Bar   |  Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells   |  Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ... Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

#### Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

• Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
• Open and create multiple documents in new tabs of the same window, rather than in new windows.
• Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I do not have an 'upload attachment' option below the message board.
Only 'rate this post', 5 stars to choose from, followed by 'Reset'.
This comment was minimized by the moderator on the site
Hi, Andrew Arnold, the Upload Atatchment option will appear when you login.
This comment was minimized by the moderator on the site
Sunny,
Its not a table I am trying to shuffle rows in, It's about 30 rows of an excel spreadsheet.
I added a column to the right, used the RAND() formula and :
1. it would only offer up two or three random numbers at a time instead of the whole column
2. after re-entering the RAND() function a few times to get all the rows I want to shuffle to have assigned random numbers, the rows will not shuffle. THis is when the message about a table appears, which I don't understand.
This comment was minimized by the moderator on the site
Hi, andrew arnold, I still not understand your question. Select 30 cells in the helper column (the column you add at right), then go to the formula bar to type =RAND(), press Enter key, then the formula RAND() will be inserted at 30 cells in the helper column at once. Then go to sort this helper column to make 30 rows shuffle randomly.
This comment was minimized by the moderator on the site
i am trying to send you a screen shot but this medium wont let me,.
This comment was minimized by the moderator on the site
Hi, andrew arnold, click the Upload Attachment below the message board, you can upload screen shot or a file.
This comment was minimized by the moderator on the site
Trying to shuffle rows, it will not allow me to.