Sort a list randomly

BrSuthe

New Member
Joined
Feb 10, 2018
Messages
29
Is there a simple way to rearrange a row of cells randomly (without repetition) using a formula preferably? and without sorting, filtering etc.

Basically what i need a formula to do something like this:

1641809325237.png


My sample data:
VBA Code:
DATA                    RANDOMIZED          
1    2    3    4    ----->    2    4    3    1
5    6    7    8    ----->    6    5    8    7

Thanks.

I have Excel 2016.
 

Attachments

  • 1641809389480.png
    1641809389480.png
    2.7 KB · Views: 6

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Try this


Book1
ABCDEFGHI
1DATARANDOMIZED
21234----->4312
35678----->8675
Sheet1
Cell Formulas
RangeFormula
F2:I3F2=AGGREGATE(15,6,$A2:$D2/(COUNTIF($E2:E2,$A2:$D2)=0),RANDBETWEEN(1,COLUMNS(F2:$I2)))
 
Upvote 0
yes, it seems to do the trick. May I ask why does the formulas reshuffle every time I make a change in any cell of the sheet? is it possible to prevent this? thanks again.
 
Upvote 0

Forum statistics

Threads
1,215,359
Messages
6,124,488
Members
449,165
Latest member
ChipDude83

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top