Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-update Fill Series in column that has randomly spaced blank c Khind Excel Discussion (Misc queries) 3 February 5th 10 06:00 PM
Fill a column randomly with 5 & 10 shaji Excel Discussion (Misc queries) 3 April 17th 09 01:38 PM
How do i sort rows randomly? Jeremy Excel Discussion (Misc queries) 5 December 12th 07 01:03 PM
How can i randomly select 780 rows from 4000 rows of data bbb Excel Worksheet Functions 2 July 6th 07 08:21 PM
randomly fill LaDdIe Excel Worksheet Functions 3 December 3rd 06 09:19 PM


All times are GMT +1. The time now is 03:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"