Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Randomly fill in rows
I have ColumnA with values in 11,000+ rows. In ColumnG I have 100 dates. How can
I randomly distribute those 100 dates in ColumnB so that ColumnB has one of the 100 dates for each of the rows in ColumnA? In other words, I want a corresponding date in ColumnB for each row in ColumnA. Thanks! Steve |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Randomly fill in rows
in column b enter
=INDEX($G$1:$G$100,ROUND(RAND()*100,0)) Lance -----Original Message----- I have ColumnA with values in 11,000+ rows. In ColumnG I have 100 dates. How can I randomly distribute those 100 dates in ColumnB so that ColumnB has one of the 100 dates for each of the rows in ColumnA? In other words, I want a corresponding date in ColumnB for each row in ColumnA. Thanks! Steve . |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Randomly fill in rows
in B1 put the formula
=Index($G$1:$G$100,trunc(rand()*100+1),1) Drag fill down the column for 11000+ rows. then select column B and do Edit=Copy, then Immediately Edit=PasteSpecial and select values. Regards, Tom Ogilvy Steve wrote in message hlink.net... I have ColumnA with values in 11,000+ rows. In ColumnG I have 100 dates. How can I randomly distribute those 100 dates in ColumnB so that ColumnB has one of the 100 dates for each of the rows in ColumnA? In other words, I want a corresponding date in ColumnB for each row in ColumnA. Thanks! Steve |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Randomly fill in rows
Actually, it will error .5% and will return the highest date (date in row
100) only .5% where all other dates will be returned 1%. Regards, Tom Ogilvy Tom Ogilvy wrote in message ... Just a head's up, but This formula will try to do [a little less than 1% of the time. ] =INDEX($G$1:$G$100,0) which will result in an error value rather than returning a date Regards, Tom Ogilvy Lance wrote in message ... in column b enter =INDEX($G$1:$G$100,ROUND(RAND()*100,0)) Lance -----Original Message----- I have ColumnA with values in 11,000+ rows. In ColumnG I have 100 dates. How can I randomly distribute those 100 dates in ColumnB so that ColumnB has one of the 100 dates for each of the rows in ColumnA? In other words, I want a corresponding date in ColumnB for each row in ColumnA. Thanks! Steve . |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Randomly fill in rows
I stand corrected
Lance -----Original Message----- Just a head's up, but This formula will try to do [a little less than 1% of the time. ] =INDEX($G$1:$G$100,0) which will result in an error value rather than returning a date Regards, Tom Ogilvy Lance wrote in message ... in column b enter =INDEX($G$1:$G$100,ROUND(RAND()*100,0)) Lance -----Original Message----- I have ColumnA with values in 11,000+ rows. In ColumnG I have 100 dates. How can I randomly distribute those 100 dates in ColumnB so that ColumnB has one of the 100 dates for each of the rows in ColumnA? In other words, I want a corresponding date in ColumnB for each row in ColumnA. Thanks! Steve . . |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Randomly fill in rows
Lance,
Thanks for taking the time to respond!! Steve "Lance" wrote in message ... I stand corrected Lance -----Original Message----- Just a head's up, but This formula will try to do [a little less than 1% of the time. ] =INDEX($G$1:$G$100,0) which will result in an error value rather than returning a date Regards, Tom Ogilvy Lance wrote in message ... in column b enter =INDEX($G$1:$G$100,ROUND(RAND()*100,0)) Lance -----Original Message----- I have ColumnA with values in 11,000+ rows. In ColumnG I have 100 dates. How can I randomly distribute those 100 dates in ColumnB so that ColumnB has one of the 100 dates for each of the rows in ColumnA? In other words, I want a corresponding date in ColumnB for each row in ColumnA. Thanks! Steve . . |
#7
Posted to microsoft.public.excel.programming
|
|||
|
|||
Randomly fill in rows
Tom,
Thanks for the help!! Steve "Tom Ogilvy" wrote in message ... in B1 put the formula =Index($G$1:$G$100,trunc(rand()*100+1),1) Drag fill down the column for 11000+ rows. then select column B and do Edit=Copy, then Immediately Edit=PasteSpecial and select values. Regards, Tom Ogilvy Steve wrote in message hlink.net... I have ColumnA with values in 11,000+ rows. In ColumnG I have 100 dates. How can I randomly distribute those 100 dates in ColumnB so that ColumnB has one of the 100 dates for each of the rows in ColumnA? In other words, I want a corresponding date in ColumnB for each row in ColumnA. Thanks! Steve |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Auto-update Fill Series in column that has randomly spaced blank c | Excel Discussion (Misc queries) | |||
Fill a column randomly with 5 & 10 | Excel Discussion (Misc queries) | |||
How do i sort rows randomly? | Excel Discussion (Misc queries) | |||
How can i randomly select 780 rows from 4000 rows of data | Excel Worksheet Functions | |||
randomly fill | Excel Worksheet Functions |