+ Reply to Thread
Results 1 to 5 of 5

How to calculate Year, Month and Day from total number of days?

  1. #1
    Forum Contributor
    Join Date
    09-14-2011
    Location
    Nepal
    MS-Off Ver
    Excel 2007
    Posts
    115

    How to calculate Year, Month and Day from total number of days?

    Dear All,

    I want to find out Year, Month and Day from total number of days. How can I do that? Please help.


    Indra
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: How to calculate Year, Month and Day from total number of days?

    A hidden relic in the form of DATEDIF().

    Parameters = DATEDIF(start date, end date, "format in quotes")

    So, DATEDIF(D2,E2,"y") = years

    ym = months

    md = days
    Last edited by daffodil11; 06-25-2014 at 09:41 AM. Reason: Missing syntax
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: How to calculate Year, Month and Day from total number of days?

    Hi there,
    to get the numbers You provide in sample workbook, You can use:
    for Year in I3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    for Month in J3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    for Day in K3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Is this something You can work with?
    Regards
    Miroslav R.

    (If You like my solutions, feel free to add reputation.)

  4. #4
    Forum Contributor
    Join Date
    09-14-2011
    Location
    Nepal
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: How to calculate Year, Month and Day from total number of days?

    Thank you very much both of you, daffodil11 and Miroslav R.. It works for me. You are genius.

    Indra

  5. #5
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: How to calculate Year, Month and Day from total number of days?

    You are welcome!

    send from my xperia z via tapatalk

+ 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: 15
    Last Post: 06-03-2014, 02:08 PM
  2. how to calculate the total absences within a year per month
    By paularhea09 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-31-2013, 08:32 AM
  3. Replies: 8
    Last Post: 05-10-2013, 05:37 AM
  4. Calculate Year Month and Days and Add them
    By lavan_joy in forum Excel General
    Replies: 8
    Last Post: 11-17-2010, 12:35 PM
  5. [SOLVED] how do i display the total number of days in the current month in.
    By timerigger in forum Excel General
    Replies: 6
    Last Post: 03-20-2005, 02:06 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