tags:

views:

1215

answers:

2

Is it possible to shuffle randomly, values in rows or columns in a excel sheet. Is there any function/macro for that? How do i do this?

-ad.

+3  A: 

Hm... just as simple solution without programming. For example, you have a column of data (A):

23
78
12
78

Just add another one column - B. Each cell of column B must be a function RAND():

A     B
--    --
23    =RAND()
78    =RAND()
12    =RAND()
78    =RAND()

Now you can sort rows by column B and get desired solution.

+1  A: 
e.James
@Ejames: I did not see a function RANDBETWEEN in my excel version(Office 2003). How do i get that function or am i missing anything?
goldenmean
@goldenmean: It is part of the "Analysis ToolPak" add-in, which comes with Excel, but isn't always enabled. If you do a search for RANDBETWEEN in Excel help, it provides some information on how to install it.
e.James