Randomizing an array

reevesfs

New Member
Joined
Apr 5, 2010
Messages
3
Disclaimer: I'm not an excel expert, so I'm sorry if this seems kind of rudimentary.

I have a dataset with 14 columns and about 900 or so rows. I added a new column to generate a random number and when I tried to sort on that column (to randomize the entire list of participants), it gives me the following error message:

You cannot change part of an array.

I've tried to look up what an array is and as far as I can tell, the only formula in the whole dataset is that of the =RAND() in the randomize column.

Thank you so much for all your help!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Did you by any chance Ctrl+Shift+Enter the =RAND() formulas in your column (all in one go)? Are they surrounded by {} brackets so when you look at the formula in the formula bar it looks like:

{=RAND()}

If not, do you have any hidden columns within the 14 columns containing a formula that looks like it has been array-entered (ie surrounded by {})?
 
Upvote 0
Hi! Thanks so much for your quick response. I did do so (I'm running Excel on a Mac, so I just pushed command+enter) and the formula has the squiggly brackets around it. I hesitate to click on any of those cells to look at the formula since sometimes it comes up with the same error message and then I can't go back and have it be the way it was.

Does that make sense? Do the brackets have to do with my sorting problem?
 
Upvote 0
Yes, it has to do with your sorting problem. I don't have a Mac so I cannot be sure but try OPTION+ENTER rather than COMMAND+ENTER.
Hi! Thanks so much for your quick response. I did do so (I'm running Excel on a Mac, so I just pushed command+enter) and the formula has the squiggly brackets around it. I hesitate to click on any of those cells to look at the formula since sometimes it comes up with the same error message and then I can't go back and have it be the way it was.

Does that make sense? Do the brackets have to do with my sorting problem?
 
Upvote 0
It worked!!! Thank you so much! I really appreciate all your help. Thanks for this great forum!
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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