+ Reply to Thread
Results 1 to 4 of 4

Calculate months and weeks from two dates

  1. #1
    Forum Contributor
    Join Date
    04-30-2012
    Location
    US
    MS-Off Ver
    Office 365 and 2021
    Posts
    122

    Calculate months and weeks from two dates

    I am trying to add a formula to calculate duration between two dates in months and weeks. Not the total number of weeks between two dates but rather count the months first, and if less than month then count weeks.

    For example:

    Start date 2019-01-01
    End date 2019-10-18

    It should calculate 9 months 3 weeks.

    Thanks a lot for your help.

    Rae

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Calculate months and weeks from two dates

    Try this:

    =DATEDIF(B1,B2,"m")&" months "&ROUNDUP((DAY(B2)-DAY(B1))/7,0)&" weeks"

  3. #3
    Forum Contributor
    Join Date
    04-30-2012
    Location
    US
    MS-Off Ver
    Office 365 and 2021
    Posts
    122

    Re: Calculate months and weeks from two dates

    Thank you for providing such a speedy solution.

    For the most part, it worked but if the dates are

    Start date: 2019-02-25
    End date: 2019-10-22

    It shows 7 months -1 weeks

    Is there a way to handle it?

  4. #4
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483
    Yes there is

    I have made several solutions also with days because you last example is 7 months, 3 weeks and 6 days

    Please see attachment because posing 4 options is a bit to much to explain in text.
    Attached Files Attached Files

+ 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. Replies: 1
    Last Post: 05-10-2019, 07:14 PM
  2. Calculate Number of weeks/months falls under each year between date range
    By dhitpit in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-12-2017, 10:06 AM
  3. [SOLVED] Trying to calculate the number of months AND weeks between two dates..
    By DigitalWavez in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-01-2014, 04:43 PM
  4. Replies: 8
    Last Post: 02-20-2014, 05:46 PM
  5. Calculate the number of weeks between two dates
    By marsham in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-04-2013, 06:39 PM
  6. Calculate Years, Months Weeks
    By mycon73 in forum Excel General
    Replies: 4
    Last Post: 03-02-2011, 12:02 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