+ Reply to Thread
Results 1 to 7 of 7

Calculate weeks between two dates (working Days)

  1. #1
    Forum Contributor
    Join Date
    03-30-2007
    Location
    London, UK
    MS-Off Ver
    Microsoft Office 2007
    Posts
    317

    Smile Calculate weeks between two dates (working Days)

    Hi Guys, I wanted to know how I could calculate how many weeks have elapsed between two dates.

    I have a start date and end date in Date format and then I use the formula NETWORKDAYS(Start Date,End Date)/5), formatted to 2 decimal places this tells how many weeks have elapsed between the two dates.

    Now I wanted to do the reverse, So basically I would have a Start Date, then the number of weeks and from this calculate the End Date using working days only.

    Is this possible?

    Thanks in advance for any help given.
    Best Regards.

    Michael
    -----------------------------------
    Windows Vista, Microsoft Office 2007

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    NETWORKDAYS has a useful "sister" function, WORKDAY.

    To add 10 working days to a date in A1, for example

    =WORKDAY(A1,10)

    so if your number of weeks is in B1 you'd need a formula like

    =WORKDAY(A1,ROUND(B1/5,0))

  3. #3
    Forum Contributor
    Join Date
    03-30-2007
    Location
    London, UK
    MS-Off Ver
    Microsoft Office 2007
    Posts
    317

    Smile

    @daddylonglegs

    Thanks for the info. I shall test it out.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Hello Michael, I inserted a deliberate error in that formula, did you spot it?

    Of course if B1 has the number of weeks you'd need to multiply by 5 to get the days, not divide, so it'd be

    =WORKDAY(A1,ROUND(B1*5,0))

  5. #5
    Forum Contributor
    Join Date
    03-30-2007
    Location
    London, UK
    MS-Off Ver
    Microsoft Office 2007
    Posts
    317

    Smile

    Quote Originally Posted by daddylonglegs
    Hello Michael, I inserted a deliberate error in that formula, did you spot it?

    Of course if B1 has the number of weeks you'd need to multiply by 5 to get the days, not divide, so it'd be

    =WORKDAY(A1,ROUND(B1*5,0))
    Yes I thought there was a problem when the formula did not quite work. I had to enter another formula into the cellcell: (B1*5)-1).

    Now I have another question. If I know the END Date and the number of weeks. How do I then calculate the Start Date?

    Thanks in advance.

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    WORKDAY works backwards as well as forwards, i.e. if the 2nd argument is a negative number then it counts backwards from the date specified so if you have end date in C1 and number of weeks to go back in D1 (shown as a positive number) you can get the start date with

    =WORKDAY(C1,-D1*5)

  7. #7
    Forum Contributor
    Join Date
    03-30-2007
    Location
    London, UK
    MS-Off Ver
    Microsoft Office 2007
    Posts
    317

    Smile

    @daddylonglegs

    Wow! Thank you so much I did not know how to reverse the days.

    This is a great help and I really appreciate it.

+ 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