ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Selecting random subset of values from one column into another (https://www.excelbanter.com/excel-worksheet-functions/239075-selecting-random-subset-values-one-column-into-another.html)

Karenne

Selecting random subset of values from one column into another
 
Hi. Hoping that someone can help me with this query.....

I have a column with 100 values. I would like to create another column with
30 values selected randomly from the 1st column of 100 values. Is there a
formula i can use to do this?

Thanks!

Karenne Tun

Jacob Skaria

Selecting random subset of values from one column into another
 
Hi Karenne

With your data in Col A A1 to A100

--In B1 enter the below formula and copy down upto B100
=RAND()

--In C1 enter the below formula and copy down to C30 (your sample list)
=INDEX($A$1:$A$100,RANK(B1,$B$1:$B$100))


If this post helps click Yes
---------------
Jacob Skaria


"Karenne" wrote:

Hi. Hoping that someone can help me with this query.....

I have a column with 100 values. I would like to create another column with
30 values selected randomly from the 1st column of 100 values. Is there a
formula i can use to do this?

Thanks!

Karenne Tun



All times are GMT +1. The time now is 03:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com