Controlling randomization without VBA?

crochenemg

New Member
Joined
Aug 28, 2014
Messages
1
Greetings,

Currently, I have a spreadsheet of text data that I need random blocks of. I have managed to take the data from the source column and arrange it "randomly" over five columns, but it isn't quite random. For example, the first row only contains values from the first row of the source column (a a a a a, rather than a e g x u). Additionally, each row that follows only takes reference from the previous rows in the source column (1 - a a a a a, 2 - a a b a b, 3 - a a b c b).

Is there a way to assure that there is no repetition across columns?
a b c d e
a x c y e
is OK,
a a b c d
is not OK.

This is what I have:
=IF($D$2:$D$500="","",(INDIRECT(ADDRESS(RANDBETWEEN(ROW($D$2),ROW($D2)+ROWS($D$500)-1),RANDBETWEEN(COLUMN($D$2),COLUMN($D$2)+COLUMNS($D$500)-1)))))

Suggestions? Please :) Thank you!
 

Some videos you may like

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Watch MrExcel Video

Forum statistics

Threads
1,122,469
Messages
5,596,339
Members
414,058
Latest member
Kate Fergie

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
Top