Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jct
 
Posts: n/a
Default Calculating dates - complex scheduling problem

I am trying to create a schedule that spreads production start dates
throughout the month based on the number of untis required that month. Each
unit is unique, so it may start on the same day as another, but may require
more or less time to complete. Trying to logically think this through, I've
created a spreadsheet with one unit number per row and have broken up steps
as follows. I know some of this could be strung together, but I wanted to see
the steps and make sure everything was working correctly.

1. Determine the 1st workday on the month (USING WEEDKAY)
2. Determine the number of days in the month (using EOMONTH)
3. Divide the number of days/mth by the number of units required = interval
(1 unit started every ___ days)
4. If 2 criteria are the same (which represents starts within the same
month), then beginning with the 1st workday, add the interval. If the
criteria are different (which represents a month change), then use the 1st
workday of the (next) month (=IF(AND(D2=D1,C2=C1),G1+K1,F2))
5. Check if the calculated start date is a workday, if not force
(=IF(WEEKDAY(L2)=1,L2+1,IF(WEEKDAY(L2)=7,L2-1,L2)))

This works fine, but I have 2 problems, and thus 2 questions:

1. Sometimes adding the interval will push the last start date into the next
month, which is unacceptable - How do I keep this from happening?
2. I need to present an alternate schedule with 2 untis started every ___
days. - How can I start 2 units on one day, then add the interval to the next
2 starts, and so on, changing with the next month.

If needed, I can send a sample of the data.
Your help is appreciated.
Janice
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jct
 
Posts: n/a
Default Calculating dates - complex scheduling problem

I know this is a long post, but I could really use the help. Thanks...

"jct" wrote:

I am trying to create a schedule that spreads production start dates
throughout the month based on the number of untis required that month. Each
unit is unique, so it may start on the same day as another, but may require
more or less time to complete. Trying to logically think this through, I've
created a spreadsheet with one unit number per row and have broken up steps
as follows. I know some of this could be strung together, but I wanted to see
the steps and make sure everything was working correctly.

1. Determine the 1st workday on the month (USING WEEDKAY)
2. Determine the number of days in the month (using EOMONTH)
3. Divide the number of days/mth by the number of units required = interval
(1 unit started every ___ days)
4. If 2 criteria are the same (which represents starts within the same
month), then beginning with the 1st workday, add the interval. If the
criteria are different (which represents a month change), then use the 1st
workday of the (next) month (=IF(AND(D2=D1,C2=C1),G1+K1,F2))
5. Check if the calculated start date is a workday, if not force
(=IF(WEEKDAY(L2)=1,L2+1,IF(WEEKDAY(L2)=7,L2-1,L2)))

This works fine, but I have 2 problems, and thus 2 questions:

1. Sometimes adding the interval will push the last start date into the next
month, which is unacceptable - How do I keep this from happening?
2. I need to present an alternate schedule with 2 untis started every ___
days. - How can I start 2 units on one day, then add the interval to the next
2 starts, and so on, changing with the next month.

If needed, I can send a sample of the data.
Your help is appreciated.
Janice

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
Calculating dates alen_re Excel Discussion (Misc queries) 2 January 25th 06 10:32 AM
Extremely complex problem: showing a value as an 'axis' on a circle [email protected] Excel Discussion (Misc queries) 5 November 15th 05 10:57 PM
calculating service dates Tanya Excel Worksheet Functions 2 January 3rd 05 08:15 PM
Problem with dates Emece Excel Worksheet Functions 7 December 22nd 04 06:47 PM
Using imported Query & Calculating Dates Woodkat Excel Worksheet Functions 1 December 8th 04 05:15 PM


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