+ Reply to Thread
Results 1 to 8 of 8

Converting decimals of working weeks to days

  1. #1
    Registered User
    Join Date
    07-19-2012
    Location
    Belfast
    MS-Off Ver
    Excel 2007
    Posts
    8

    Converting decimals of working weeks to days

    Hi All,

    I am trying to work out the number of weeks and days between 2 dates, The NETWORKINGDAYS function works this out in days nicely. However if I divide the result by 5 to get weeks I get part weeks expressed as decimals rather than days. I know it doesn’t take a genius to work out that .2 of a working week is 1 day, .4 is 2 days, .6 is 3 days and . 8 is 4 days but I would like Excel to show weeks and days as the result.

    EG

    My Start date is 15/04/2013 (cell A1)
    My Finish date is 09/07/2013 (cell B1)

    The formula is

    =NETWORKDAYS(A1,B1)/5

    This gives me 12.4 as the total number of weeks. But how do I get excel to show that as 12 weeks and 2 days.

    Hope this makes sense

    Dermot

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Converting decimals of working weeks to days

    One way

    =SUBSTITUTE(TEXT(NETWORKDAYS(A1,B1)/5,"# w\e\ek\s 0/5"),"/5"," Days")

  3. #3
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: Converting decimals of working weeks to days

    would you like it to show you in two seperate cells, so Weeks in one and Days in another?

  4. #4
    Forum Contributor BenMiller's Avatar
    Join Date
    12-06-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: Converting decimals of working weeks to days

    Try

    =ROUNDDOWN(NETWORKDAYS(A1,B1)/5,0)&" weeks, "&MOD(NETWORKDAYS(A1,B1)/5,ROUNDDOWN(NETWORKDAYS(A1,B1)/5,0))*5&" days"

  5. #5
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094

    Re: Converting decimals of working weeks to days

    Hi,

    As text you can show it by:

    =ROUNDDOWN(NETWORKDAYS(A1,A2)/5,0)&" Weeks "&MOD(NETWORKDAYS(A1,A2),5)&" Days"

    Or in separate cells (no text) just use the formulas independently:

    ROUNDDOWN(NETWORKDAYS(A1,A2)/5,0)

    MOD(NETWORKDAYS(A1,A2),5)



    HTH
    Steve
    Last edited by SteveG; 07-19-2012 at 01:50 PM. Reason: Fix

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Converting decimals of working weeks to days

    =(NETWORKDAYS(A1,B1)-MOD(NETWORKDAYS(A1,B1),5))/5&" weeks "&MOD(NETWORKDAYS(A1,B1),5)&" days"
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Converting decimals of working weeks to days

    Perhaps =DOLLARFR(NETWORKDAYS(A1,B1)/5, 5)

    The decimal indicates the number of days, 0 to 4.
    Entia non sunt multiplicanda sine necessitate

  8. #8
    Registered User
    Join Date
    07-19-2012
    Location
    Belfast
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Converting decimals of working weeks to days

    A big big thank you to jason.b75, amotto11, BenMillar, SteveG, MartinWilson and shg. All worked!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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