#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 131
Default randomly fill

Help,

I'm working on a work rota,
I've got a list of staff in column A and there are 5 duties they could be
assigned to in columns B C D E & F, I need to randomly assign each member of
staff a duty without any member appearing twice.

Any help is appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default randomly fill

Say your headers are in Row1, and names are in A2 to A6.
Duties are listed in Z1 to Z5.

In Y1 enter:
=Rand()
and copy down to Y5.

In B2 enter:
=INDEX($Z$1:$Z$5,RANK(Y1,$Y$1:$Y$5))

And copy down to B6.

This will give you a random list of duties next to each name, where every
hit of <F9 will give you a list of new random choices.

You can set calculation to manual to retain the list display until <F9 is
hit.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"LaDdIe" wrote in message
...
Help,

I'm working on a work rota,
I've got a list of staff in column A and there are 5 duties they could be
assigned to in columns B C D E & F, I need to randomly assign each member of
staff a duty without any member appearing twice.

Any help is appreciated.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 131
Default randomly fill

Thanks very much, That works a treat.


"RagDyeR" wrote:

Say your headers are in Row1, and names are in A2 to A6.
Duties are listed in Z1 to Z5.

In Y1 enter:
=Rand()
and copy down to Y5.

In B2 enter:
=INDEX($Z$1:$Z$5,RANK(Y1,$Y$1:$Y$5))

And copy down to B6.

This will give you a random list of duties next to each name, where every
hit of <F9 will give you a list of new random choices.

You can set calculation to manual to retain the list display until <F9 is
hit.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"LaDdIe" wrote in message
...
Help,

I'm working on a work rota,
I've got a list of staff in column A and there are 5 duties they could be
assigned to in columns B C D E & F, I need to randomly assign each member of
staff a duty without any member appearing twice.

Any help is appreciated.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default randomly fill

You're welcome, and thanks for the feed-back.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"LaDdIe" wrote in message
...
Thanks very much, That works a treat.


"RagDyeR" wrote:

Say your headers are in Row1, and names are in A2 to A6.
Duties are listed in Z1 to Z5.

In Y1 enter:
=Rand()
and copy down to Y5.

In B2 enter:
=INDEX($Z$1:$Z$5,RANK(Y1,$Y$1:$Y$5))

And copy down to B6.

This will give you a random list of duties next to each name, where

every
hit of <F9 will give you a list of new random choices.

You can set calculation to manual to retain the list display until <F9

is
hit.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"LaDdIe" wrote in message
...
Help,

I'm working on a work rota,
I've got a list of staff in column A and there are 5 duties they could

be
assigned to in columns B C D E & F, I need to randomly assign each

member of
staff a duty without any member appearing twice.

Any help is appreciated.




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
basics? n21 New Users to Excel 7 September 21st 06 12:37 PM
Column picked randomly with probability relative to number of entr Neil Goldwasser Excel Worksheet Functions 4 May 30th 06 08:55 AM
Auto fill option Thana New Users to Excel 2 March 9th 06 06:13 PM
How to fill colour in Excel, it appers No fill in my computer? bede Excel Discussion (Misc queries) 1 June 11th 05 03:27 AM
Excel printing problem - won't print cell under a "fill effect" bo dmotika Excel Discussion (Misc queries) 0 May 26th 05 04:38 PM


All times are GMT +1. The time now is 06:46 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"