+ Reply to Thread
Results 1 to 14 of 14

Converting Work Weeks to Workdays

  1. #1
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Question Converting Work Weeks to Workdays

    Hi Group

    Looking for a function that will convert Work Weeks to Workdays, factoring holidays and with or without weekends

    Example:

    If planning 2 work weeks, will have 10 work days if there are no holidays during these 2 weeks and it's a standard work week

    Later,

    I may need to plan a 6 or 7 day work week and would like to see these options

    See attached example


    Thanks
    Attached Files Attached Files
    Last edited by mycon73; 10-17-2021 at 09:59 PM.
    MyCon
    -- Using Latest Version of Excel

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Converting Work Weeks to Workdays

    Try NETWORKDAY.INTL with weekend option: 0 (workday) and 1 (weekend)

    With 2 weekends:
    =NETWORKDAYS.INTL(B10,E10,"0000011",$H$8:$H$27)

    1 weekend (Sun):
    =NETWORKDAYS.INTL(B10,E10,"0000001",$H$8:$H$27)
    Quang PT

  3. #3
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Converting Work Weeks to Workdays

    bebo021999

    These work great!

    Thanks

  4. #4
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Converting Work Weeks to Workdays

    bebo021999 & Others

    Re-reviewed the function a bit more

    The target date column dates are manual inputs in which I left there for reference

    To clarify more

    Looking to take Planned Start Date & figure out (approximate) date based on the estimated weeks

    In the first example

    Starting task on, 10/25/2021 with task planned for 12 weeks will give me target date of 01/17/2022

    Request assistance to modify both columns I & J within my example

    Thanks

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Converting Work Weeks to Workdays

    Quote Originally Posted by mycon73 View Post
    Request assistance to modify both columns I & J within my example
    I is holiday and J is blank. Do you mean D & E?
    Start on 10/25+2 weeks, what is your expected result and where?

  6. #6
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Converting Work Weeks to Workdays

    bebo021999

    Target Dates columns (column E) were will calculate from Planned Start date & converted Weeks to Work Days to GIVE Target Dates

    Hope this clarifies

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Converting Work Weeks to Workdays

    What is your expected result , for instant, 10/25/2021 + 2 weeks?

  8. #8
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Converting Work Weeks to Workdays

    I have put the definition of the work week to be used by the workday.intl() function in cell A2. It is a text string with 0 meaning a work day and 1 meaning an Off Day. Per the workday.intl() documentation the text string is 7 characters long, the first character maps to Monday, so with the string set to 0000011 this means a regular Mon-Fri work week. You can adjust this cell if you decide to go to a 6 or 7 day work week.

    Your "Planned work weeks" column is, I'm guessing, your expected effort assuming a nominal 5 day week, so "Workday conversion" then is simply 5*"Planned work weeks". So in D10 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Now you need to find the end date that provides "Workday Conversion" work days allowing for both weekends and holidays - that's exactly what the WORKDAY.INTL() function does, so in E10 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    See the attached update to your workbook.

    Let us know if this is on the right track. If not, then per Bebo021999's request - please clarify and add expected results.
    Attached Files Attached Files
    Last edited by GeoffW283; 10-18-2021 at 04:10 PM.
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  9. #9
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Converting Work Weeks to Workdays

    Hi GeoffW283

    What & why is "0000011" needed?


    This looks good!

    In column D - Workday Conversion - Should it also be factoring holidays?

    If using in Cell F10 or added column, =NETWORKDAYS(B10,E10) - It appears 1 more day is is added to almost all date durations

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Converting Work Weeks to Workdays

    mycon73 please update your profile to show what version of Office you are using. Members consider this when offering solutions.
    Dave

  11. #11
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Converting Work Weeks to Workdays

    What & why is "0000011" needed?
    "0000011" is the third parameter to the WORKDAY.INTL() function in the column-E formula. It specifies which days of the week are work days (the zeros) and which days of the week are time off (the ones). The string is always 7 characters long and goes from Monday to Sunday. Therefore "0000011" represents a normal Monday to Friday work week. See the Microsoft documentation for a more thorough explanation. I kept this parameter in its own cell in the event that you ever see a need to alter the working week.

    In column D - Workday Conversion - Should it also be factoring holidays?
    I assumed (rightly or wrongly( that Column-C "Planned work weeks" represented the estimated required effort for the project assuming a nominal five day working week. Column-D is therefore just the effort in weeks multiplied by five. That gives you the number of planned working days that need to be fitted in by the end date taking into account both weekends and holidays - that's the calculation that the WORKDAY.INTL() function in column-E performs and is where both weekends and holidays are taken into account. The column-D header might be better renamed "Planned work days"

    If using in Cell F10 or added column, =NETWORKDAYS(B10,E10) - It appears 1 more day is is added to almost all date durations
    Interesting. I saw no explicit explanation in the Microsoft documentation for the apparent 1 day discrepancy.

    To try to see what is happening a little clearer, in C10 I entered 0.2 weeks so that the planned work days is exactly 1.

    The start date is 10/25/2021 and the col-E formula computed a target end date of 10/26/2021. The NETWORKDAYS.INTL() call in col-F determined that there are 2 work days between 10/25/2021 and 10/26/2021, so who is right?

    NETWORKDAYS.INTL() in col-F says 2 days - which makes sense - you have 10/25 and 10/26

    But if you have 1 day of effort and you start first thing on 10/25/2021 then you would expect to finish the job by the end of the same day.

    Therefore, in summary, I think it would be correct to simply subtract 1 from the current col-E formula which will make it consistent with your col-F NETWORKDAYS.INTL() check, so in E10:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    That does leave a single "one-day-difference" anomaly on row-22 where the start date is 7/4/2022, presumably because your start date is a defined holiday. We could complicate the col-E formula by checking for this condition or you can just avoid starting a project on a holiday day - let us know.

    I hope this makes things clearer.
    Last edited by GeoffW283; 10-21-2021 at 02:58 AM.

  12. #12
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Converting Work Weeks to Workdays

    GeoffW283

    Thank you for the detailed explanations

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Converting Work Weeks to Workdays

    Administrative Note

    Members will tailor the solutions they offer to the version of Office (Excel) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  14. #14
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Converting Work Weeks to Workdays

    Thanks for the feedback and rep!

+ 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. Need formula help to calculate workdays and work hours
    By Drscott21 in forum Excel General
    Replies: 6
    Last Post: 04-04-2018, 05:10 PM
  2. Replies: 11
    Last Post: 11-18-2016, 09:25 AM
  3. Replies: 25
    Last Post: 03-02-2016, 05:55 PM
  4. Spell Out Workdays & Calculate Work Hours
    By mycon73 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-08-2014, 01:43 AM
  5. converting dates to weeks
    By alexg34 in forum Excel General
    Replies: 8
    Last Post: 06-29-2013, 06:50 PM
  6. Convert Workdays to Work Weeks
    By mycon73 in forum Excel General
    Replies: 1
    Last Post: 06-11-2013, 12:37 PM
  7. [SOLVED] Converting Dates to Weeks
    By Kurt in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-21-2006, 04:23 AM

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