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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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,353
Messages
6,124,462
Members
449,163
Latest member
kshealy

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