Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default I need a design to handle the following

I'm hoping that someone might be able to help me design the proper code
structure to handle my scenarios.

I gave a range (G11,CX298) it is a work schedule. If a person is
chedule to work a "." is placed in each cell in the range that
designates their shift.

Shifts have different lengths and 8 hour shift is 34 cells. A 10 hour
shift is 42 cells. etc. I also have som other shift lengths that differ
from the ones I mentioned.

I would like to find a way to insert breaks and lunches into each
shift. So for example if the shift is 8 hours (34 cells) I want to
insert a break 2 hours into the shift (8th cell), 4 hours in should be
a Lunch(16th cell) and so on

Here is where it get's tricky. The range is sorted by the shift start
time. So if a group of 8 hour shifts is grouped together and I place in
a break after 2 hours, everyone on the shift would have to go to break
at the same time, which is no good. The breaks need to be staggered to
keep the most people working. So in the next row the break might have
to be placed in cell 7, on the next row maybe cell 6? The object is
to keep the max number of people working at all times.

Obviously there will need to be parameters that define how for a break
can deviate from the 8th cell as well as the other cells

I'm hoping someone can show me the correct way to handle a scenario
like this as opposed to me posting my feeble attemps that will almost
certainally leave something out.

If the parameters could be user defined by the user entering in the
length of break and lunch parameters somewhere, that might be the
easiest way to do it.

Thanks

I'm attaching a small example, the actual workbook is 6meg.

Attachment filename: sample.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=684978
---
Message posted from http://www.ExcelForum.com/

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
How to handle something like this DK Excel Discussion (Misc queries) 0 May 19th 09 11:40 PM
what is "fill handle". i don't see any fill handle in my excel Neelakanta New Users to Excel 32 June 18th 08 12:48 PM
Fill handle turned into a move handle Northwoods Excel Discussion (Misc queries) 1 March 2nd 07 03:40 PM
Not sure how to handle this hotherps[_139_] Excel Programming 2 August 29th 04 06:27 PM
Enter Excel Design Mode and Exit Design Mode Bill Lunney Excel Programming 0 August 4th 03 07:48 AM


All times are GMT +1. The time now is 03:29 AM.

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"