Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Randomly populating empty cells with other text cells

I am attempting to figure out how to randomly populate a grouping of empty
cells by using another grouping of filled text cells. Keeping it random is
key. If anyone has any info, I would be very greatful. Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default Randomly populating empty cells with other text cells

For clarification purposes, something similar to the below?

AGD
CEZ
BMP

to

PEA
DZB
CGM

Keeping all the same text, just reordering them, correct?

If so, just thinking out loud without trying it out myself in excel,
but I would try to do the following:

a. Put all the text into a list using a double For/Next loop for
column/row.
b. At the same time you're making the list, count the number of
entries.
c. Repeat the same For/Next loop but have a randomly generated number
determine which word in the list to use.
d. Remove the word from the list once it's been placed and subtract 1
from the number of entries count.




On 7¤ë1¤é, ¤È«á3:44, Throme88 wrote:
I am attempting to figure out how to randomly populate a grouping of empty
cells by using another grouping of filled text cells. Keeping it random is
key. If anyone has any info, I would be very greatful. Thank you.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 806
Default Randomly populating empty cells with other text cells

Hello,

Search for the words index and uniqrandint in this group.

Regards,
Bernd
  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Randomly populating empty cells with other text cells

One simple play to tinker with

Assume the source text cells are within A1:A5
In B1: =RAND()
In C1: =INDEX($A$1:$A$5,RANK(B1,$B$1:$B$5))
Copy B1:C1 down to C5

C1:C5 will return a random scramble of the source text in A1:A5
Press F9 to regenerate afresh

Just point to C1:C5 if you wish to re-lay the random scramble elsewhere
Example, you could place in any cell,
say in E2: =INDEX($C$1:$C$5,COLUMNS($A:A))
then copy E2 across to I2 to display the random scramble horizontally

Adapt/extend to suit
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Throme88" wrote:
I am attempting to figure out how to randomly populate a grouping of empty
cells by using another grouping of filled text cells. Keeping it random is
key. If anyone has any info, I would be very greatful. Thank you.

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
Find empty cells, fill with text from cell above Marketer Excel Worksheet Functions 1 August 27th 07 10:35 PM
Populating empty cells Colin Hayes Excel Worksheet Functions 4 August 4th 06 05:51 PM
Save trailing empty cells in a tab delimited text file osios Excel Discussion (Misc queries) 3 April 24th 06 08:54 AM
how insert same text in empty cells in column (10000 rows) bromptongadgets Excel Worksheet Functions 1 December 11th 05 03:13 PM
How can I remove hidden empty text cells from Excel? Bill Z1P Excel Worksheet Functions 2 October 2nd 05 08:04 PM


All times are GMT +1. The time now is 04:31 PM.

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

About Us

"It's about Microsoft Excel"