+ Reply to Thread
Results 1 to 7 of 7

calculating Months from days!!

  1. #1
    Forum Contributor meus's Avatar
    Join Date
    11-25-2014
    Location
    kathmandu
    MS-Off Ver
    2010/ 2013
    Posts
    287

    calculating Months from days!!

    Hi friends!!
    I have a problem here. what i was trying to do was to calculate the months or year from the supplied days. We know that there are 365 days.
    Suppose that the supplied day is 335. Then i want to know the number of month from the supplied date. My desired result is 11 (11th month from the supplied day).
    How can we do that??
    Attached file here:
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: calculating Months from days!!

    Try this...

    =DATEDIF(D8,E8,"m")

  3. #3
    Forum Contributor meus's Avatar
    Join Date
    11-25-2014
    Location
    kathmandu
    MS-Off Ver
    2010/ 2013
    Posts
    287

    Re: calculating Months from days!!

    Thanks buddy.....

  4. #4
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: calculating Months from days!!

    No problem... hope it helped...

  5. #5
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: calculating Months from days!!

    In your spreadsheet you have a note saying that dividing by 365 gives you 0.9'but you want to show as 0.11 representing 11 months.

    Firstly dividing by 365 will give you 0.9 years. Multiply by 12 to convert to months or simply divide the number of days by 30 to get the number of months noting that months vary in the number of days so this will be an approximation. Did you really want it to show as 0.11 though? If so you'll need to divide again by 100.
    Happy with my advice? Click on the * reputation button below

  6. #6
    Forum Contributor meus's Avatar
    Join Date
    11-25-2014
    Location
    kathmandu
    MS-Off Ver
    2010/ 2013
    Posts
    287

    Re: calculating Months from days!!

    Hi djapigo, is there any way that for month it shows upto 11 and if it increases after that, it shows 1.1 years for 13 months or so on??

  7. #7
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: calculating Months from days!!

    If you just want decimal representation, then just use =DATEDIF(D8,E8,"m")/12

    But if you like something fancier, but uglier... try this...
    It's ugly, but try this...

    =TRIM(IF(DATEDIF(D8,E8,"y")>0,DATEDIF(D8,E8,"y")&IF(DATEDIF(D8,E8,"y")=1," year"," years"),"")&" "&IF(MOD(DATEDIF(D8,E8,"m"),12)>0,MOD(DATEDIF(D8,E8,"m"),12)&IF(MOD(DATEDIF(D8,E8,"m"),12)=1," month"," months"),""))

    Let me know what you think...

    BTW - thank you for the rep!
    Last edited by djapigo; 03-06-2015 at 06:04 AM.

+ 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. Calculating years/months/days between two dates
    By jen9537 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-05-2014, 03:03 AM
  2. [SOLVED] Calculating 2 months and 10 days from a specific date
    By pedkerr in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-07-2013, 11:01 AM
  3. calculating the experience in number of years, months, days.
    By marineharish in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-22-2013, 12:47 PM
  4. problem of calculating years months and days
    By naughtyboy in forum Excel General
    Replies: 1
    Last Post: 08-07-2006, 06:25 AM
  5. Replies: 3
    Last Post: 06-28-2006, 05:40 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