LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Random Range of Dates

I'm very fluent with VB / VBA however having some difficulty with the
statistics/logic.

I'm hoping someone here can point me in a direction to solve the
following...

I'm developing a model in excel to run simulations against. One
aspect involves randomly identifying ranges of days/dates within a 365
day calendar year.

Example:

Name Days Vacation
========= ===========
Employee 1 14
Employee 2 28
Employee 3 21

Based on the above I'm trying to generate a yearly work schedule that
identifies/applies random vacation days in the amounts specified in
the list. Ideally I'd like some way of weighting the randomization to
better reflect how vacation is taken (eg, in a 2 week block with an
occasional day here and there, rather than completely random.)

Using the data above as an example, I can easily create a list of 14
random yearly dates for Employee 1. The challenge I'm having creating
logic to randomize into blocks of days (eg, 5 consecutive days, 1 day,
1 day, 5 consecutive days, 3 consecutive days)

If anyone has any ideas/insight into the logic required I'd appreciate
hearing from you.

Thanks in advance.

- Michael
 
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
How can I generate a list of random dates from dates I specify JJ TUMIA Excel Worksheet Functions 2 August 8th 08 12:23 PM
how do I sort a column of random dates into Consecutive dates Rob Gibson Excel Worksheet Functions 2 June 12th 07 05:10 AM
random dates showing up in userform [email protected] Excel Programming 1 June 29th 06 09:18 PM
How to generate a random list of weekDAYS between two dates? Yanzel Muniz Excel Worksheet Functions 1 September 22nd 05 12:45 AM
How do I generate random numbers using dates in excel? celia w Excel Worksheet Functions 1 April 20th 05 08:05 PM


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