+ Reply to Thread
Results 1 to 4 of 4

Datedif formula needed for months and days

  1. #1
    Registered User
    Join Date
    03-19-2021
    Location
    Spain
    MS-Off Ver
    365
    Posts
    56

    Datedif formula needed for months and days

    Hello
    I have a Dateif formula to work out years from a date, is there a way of working out the months and days

    Example from December 6th 1946 to todays date 74 years 4 months 18 days
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,000

    Re: Datedif formula needed for months and days

    Parameters for DATEDIF

    "y" Difference in complete years
    "m" Difference in complete months
    "d" Difference in days
    "md" Difference in days, ignoring months and years
    "ym" Difference in months, ignoring years
    "yd" Difference in days, ignoring years

    You need "ym" and "md" respectively.

  3. #3
    Registered User
    Join Date
    03-19-2021
    Location
    Spain
    MS-Off Ver
    365
    Posts
    56

    Re: Datedif formula needed for months and days

    Thanks John
    I have inserted YM in playes of M and it says 18 months
    What I want is the total years and months and days from the inserted date
    Regards John
    Attached Files Attached Files

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,411

    Re: Datedif formula needed for months and days

    see attached with formatting in appropriate cells
    torachan
    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. [SOLVED] Calculate the number of Months between two Dates (DATEDIF M)
    By sweetbomb in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-18-2019, 12:30 PM
  2. [SOLVED] DATEDIF Formula returning the same value for two different months
    By Sherran in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-30-2019, 04:54 PM
  3. Full months and DATEDIF
    By tedcahill2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-09-2018, 10:25 AM
  4. Average formula for Years, Months and Days
    By Danniel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-30-2016, 04:13 PM
  5. [SOLVED] DATEDIF - DATEDIF Calculation returning a negative for days or months
    By DaveBre in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-27-2015, 06:22 PM
  6. Replies: 3
    Last Post: 07-16-2014, 01:50 AM
  7. Datedif - 20 days
    By Matt_Excel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2013, 01:46 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