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: 1
Default logic problem: help needed


Hi,
I am using Excel to program a staff rota. This is posing me a few
problems, and I would appreciate any help.

Imagine a block of cells 50 rows high and 28 columns across. Each row
represents the workpattern of a member of staff, and each column is one
day.

A cell can be empty (Day off) or have a 'D' (day-shift)

Each person has to work 13 shifts in the 28 days

I want a macro to enter the 'D's into the sheet, but there are some
rules that must be followed.

1) Each row has 13 'D's.

2) Each column should have roughly the same number of 'D's (ie the
same number of staff) - a difference of 1 is OK.

3) D's should be clustered into 2's & 3's in each row

4) Each row will start out with 5 'D's in place that have been entered
by hand: these cannot be moved.

I am finding this extremely tricky. The problem I have is following one
rule tends to cause another to be broken. ie I can get the 'D's to
cluster or to have the same number in each column, but not both at the
same time.

I will be very grateful for any help.

David


--
dcleave
------------------------------------------------------------------------
dcleave's Profile: http://www.excelforum.com/member.php...o&userid=20562
View this thread: http://www.excelforum.com/showthread...hreadid=393767

 
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
problem with excel logic, too complicated of a function set??? mvollmers Excel Worksheet Functions 3 October 9th 08 04:07 AM
Finding the average using conditions in a logic function - problem Thomas Excel Discussion (Misc queries) 1 August 1st 08 04:18 PM
graph problem - urgent help needed. harvey_nz Excel Discussion (Misc queries) 2 July 3rd 06 09:43 PM
Logic Problem JOn Kunces via OfficeKB.com Excel Discussion (Misc queries) 4 July 14th 05 04:32 PM
InputBox Method Logic Problem ExcelMonkey[_20_] Excel Programming 2 January 24th 04 04:47 AM


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