+ Reply to Thread
Results 1 to 3 of 3

Date span calculation

  1. #1
    Registered User
    Join Date
    03-30-2007
    Posts
    7

    Date span calculation

    OK. I admit I've been out of development for a while. I am attempting to develop a simple resource allocation spreadsheet to help me schedule my team's projects.

    I have a listing of projects with the number of hours requested, a start date and the number of hours available to work on projects (among a few other columns irrelevant to this thread). I need a summary of the allocation of each person per week for the next several weeks.

    I am fairly close, however, I have a few calculation problems plus one "bonus problem" I would like to resolve.
    Please Login or Register  to view this content.
    This should be the relevant pieces of code.

    The major problem I am having is when the project ENDS on the date passed in or during CurrWeek; it miscalculates.

    Another issue is that it seems to be falling down on multi-week spans. If a project spans 4 weeks, the intermediate weeks do not calculate properly. At least that is how it looks in my testing. I have a few weeks in the middle with odd numbers such as 80% utilization (HrsAllocated / HrsAvailable) when I expect 100%.

    My bonus piece is the fraction of a project within a week. Say we have a 60 hour project with 40 hours of time available. The current calculation would be 2 weeks at 100% utilization. I would like 1 week at 100% and 1 week at 50%. I am not taking into account the number of remaining project hours.

    HELP! How could this function (GetHrs) be rewritten properly? The full workbook is available upon request. I can post it on a web server if requested.

    Thanks!

  2. #2
    Registered User
    Join Date
    03-30-2007
    Posts
    7

    Posted xls file

    I've posted the file as it stands in its unfinished state at:
    http://www.cm-software.com/ProjectList.xls

    I greatly appreciate any help!

  3. #3
    Registered User
    Join Date
    03-30-2007
    Posts
    7

    The actual xls file

    In attaching the actual xls file, I get a free bump. Hope it's not frowned upon.

    I realize this is a simple logic problem, but it's stumping me. I may rewrite the impacted function entirely and try to be less "cute" with it. I may just end up brute forcing the logic.

    If anyone is interested, there are a few fun items in this spreadsheet that could be ripped out and reused.

    Even if you cannot help me out, the file could be useful to someone.
    Attached Files Attached Files
    Last edited by cm_027; 04-03-2007 at 03:22 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1