+ Reply to Thread
Results 1 to 6 of 6

Adding to a requirement....

  1. #1
    Registered User
    Join Date
    07-28-2013
    Location
    Nottingham
    MS-Off Ver
    Excel 2010
    Posts
    12

    Adding to a requirement....

    Hi all and apologies for poor title but very difficult to explain (well a least i am finding it so...)

    So i have some data and let's say a job comes in at 1300 that takes 1 person. But that job takes say 5 hrs for that 1 person.

    Another job comes in an 1400 and that job takes 5 hrs ; so then at 1400 we have a demand of 2 people

    Well not explaining very well but is there a way in excel in carrying forward that demand of 1 person for 5 hrs and then stop?

    Many thanks

    Simon

  2. #2
    Registered User
    Join Date
    06-22-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    65

    Re: Adding to a requirement....

    sumospim,

    See attached.

    Excel stores times and dates as numbers so you can find the end date/ time by adding the job duration hours to the end time. Note you need to divide the job duration hours by 24 as this is how excel stores it.

    Then it is a case of checking whether the time you need to find resources for is greater than the start time and less that the end time. The formula below does this.

    =SUMPRODUCT((A2:A12<=E2)*(C2:C12>=E2))

    Note that the way you get Excel to display the date and time is down to the cell formatting. I have used dd-mmm-yy hh:mm

    Regards

    David
    Attached Files Attached Files
    Last edited by JBeaucaire; 08-14-2013 at 10:26 AM.

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,322

    Re: Adding to a requirement....

    How about this?
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Registered User
    Join Date
    07-28-2013
    Location
    Nottingham
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Adding to a requirement....

    Cheers both for the above...I think I understand the above. I have attached the data which I have arrived at but then realised it is not a true representation as each head (person/requirement) is required for 5 hours and then not so....Would the above formula still be applicable?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-28-2013
    Location
    Nottingham
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Adding to a requirement....

    Hi all, just bumping this; did anybody have chance to look at the attachment...?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Adding to a requirement....

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem. Once you have done this please send me a PM and I will remove this request.

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Code Requirement
    By Alokshah7 in forum Excel General
    Replies: 1
    Last Post: 06-28-2013, 03:09 PM
  2. please help me to run this macro as per the requirement
    By vipulhumein in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-11-2013, 01:40 AM
  3. STAFFING REQUIREMENT with TAT
    By coolzero in forum Excel General
    Replies: 2
    Last Post: 12-13-2012, 04:01 PM
  4. formula requirement
    By pcor in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 01-07-2006, 06:50 PM
  5. if until requirement met
    By stefan via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-28-2005, 03:05 PM

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