+ Reply to Thread
Results 1 to 11 of 11

Leadtime for jobs based on available resources

  1. #1
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Leadtime for jobs based on available resources

    Hi,

    I have attached a workbook in which I calculate leadtimes for jobs.

    All workers have a start and finish date, as well as a capacity percentage for that given availability (see table 1)
    Each job has a defined duration in number of Man Days, i.e. the number of work days to complete the task for one FTE (full time employee), as well as a start date for the job. (see table 3).

    By using the calculations given in table 2, I am able to come up with the following results:

    - Duration for the job in number of work days based on the assumption that all available resources are using their capacity to contribute to the job, e.g. doubling the number of FTEs will cut the duration in half. (cell D23)
    - Duration for the job in number of calendar days. (cell E23)
    - Finish date for the job based on start date + number of calculated calendar days. (cell F23)

    I want to bypass the need for table 2 for these calculations, and instead have formulas in cells D23, E23 and F23 which calculates these results directly from what is given in table 1 and table 3.

    Can someone have a look?

    Best regards,
    Marbleking

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,200

    Re: Leadtime for jobs based on available resources

    Why do you want to get rid of table 2? If it does what you want and ain't broke, then ...
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: Leadtime for jobs based on available resources

    Hi AliGW,

    I need to get rid of table 2 because I am going to calculate the results for a long list of jobs at once (using the previous job’s finish date as the start of the next, and so forth). Therefore, it will be very unpractical to have to use this method. Also, I need to get rid of table 2 to get more flexibility regarding additions and removals in table 1.

    Regards,
    Marbleking

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Leadtime for jobs based on available resources

    Maybe try
    F3
    =B3*E3

    F23 => 1 Aug 2022
    =LET(st,C23,d,B23,ds,WORKDAY(st,SEQUENCE(d,,0)),ft,SUMIFS(Workers[FTEs],Workers[Available from date],"<="&ds,Workers[Available to date],">="&ds),
    fts,MMULT(--(ds>=TRANSPOSE(ds)),ft),XLOOKUP(d,fts,ds,,1))

    or 29 Jul 2022

    =LET(st,C23,d,B23,ds,WORKDAY(st,SEQUENCE(d,,0)),ft,SUMIFS(Workers[FTEs],Workers[Available from date],"<="&ds,Workers[Available to date],">="&ds),
    fts,MMULT(--(ds>=TRANSPOSE(ds)),ft),XLOOKUP(d,fts,ds,,-1))

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Leadtime for jobs based on available resources

    UDF can be tried. Is it ok.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: Leadtime for jobs based on available resources

    Thanks, Bo_Ry! That works perfectly. I'll go with the first option. Thanks for the extra columns of formulas which made it easy to understand your thinking.

    Regards,
    Marbleking

  7. #7
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: Leadtime for jobs based on available resources

    Hi kvsrinivasamurthy,

    An UDF would also be interesting to see for this, if you want to give it a try.

    Regards,
    Marbleking

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Leadtime for jobs based on available resources

    Code for UDF "TotDays"
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: Leadtime for jobs based on available resources

    Thanks, kvsrinivasamurthy! This is also a very useful solution. You have a point regarding table 2, and double counting of days when the "availability from dates" are equal to the previous "availabilty to dates". Correct would be "availability from dates" = "previous availabilty to dates" + 1.

    In this example, we then get finish date 2 August 2022 for the defined job. But Bo_Ry's solution also seem correct, ending at 1 August 2022 when the needed 200 Man Days will be fulfilled (and slightly exceeded at some point that day). I am not able to see exactly why the finish dates differ.

    Regards,
    Marbleking

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Leadtime for jobs based on available resources

    Pl see file .
    I have given day to day calculation of Networkdays and Mandays and Workday from 22-2-22.
    Networkdays counts starting day also. For same starting date and ending date Networkdays is 1.workday after 1 day it will be next date.
    The date of working day after completion of networkdays will be given by workday function.
    I feel in this case to get the finish date the previous day of starting should be taken. This is my observation.

  11. #11
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: Leadtime for jobs based on available resources

    Thanks for the explanation, kvsrinivasamurthy! I'll mark this thread SOLVED. Regards, Marbleking

+ 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. [SOLVED] Price and # of Jobs based on drop down
    By Wskip49 in forum Excel General
    Replies: 2
    Last Post: 10-26-2020, 01:28 PM
  2. VLOOKUP for leadtime variable
    By soopial in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-19-2019, 12:11 PM
  3. Average and Mean Leadtime flight data
    By Mackjavelli in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-26-2016, 09:48 AM
  4. Cost jobs based on hours and job number
    By Grunty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-29-2013, 09:38 AM
  5. calculate leadtime
    By nieuwwerk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-05-2013, 01:01 PM
  6. Leadtime
    By luis87 in forum Excel General
    Replies: 9
    Last Post: 12-11-2009, 08:01 PM

Tags for this Thread

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