+ Reply to Thread
Results 1 to 6 of 6

How to accurately/precisely count number of months, days from a particular date to a date

  1. #1
    Registered User
    Join Date
    07-03-2015
    Location
    Islamabad, Pakistan
    MS-Off Ver
    2007
    Posts
    14

    How to accurately/precisely count number of months, days from a particular date to a date

    Respected All,

    I tried different methods, told by colleagues or shared by experts on different forums. But I was looking for a precise/accurate method to calculate number of months, days from a particular date to an ending date e.g. 1-Oct-2014 to 1-Sep-2015. I will use this information to make payments. Any support in this matter will be highly appreciated please.

    Regards
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to accurately/precisely count number of months, days from a particular date to a d

    For Months

    =DATEDIF(D2,E2+1,"M")
    For Days
    =DATEDIF(D2,E2+1,"MD")
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-03-2015
    Location
    Islamabad, Pakistan
    MS-Off Ver
    2007
    Posts
    14

    Re: How to accurately/precisely count number of months, days from a particular date to a d

    Thanks ChemisB
    Number of Months and Days are correctly counted using the formula you suggested.

    I'm confused as to what to put the formula in I2 e.g. =(H2*F2)+(H2*G2/30) G/30 or G/31 or G/29, I wouldn't know. Could you kindly figure out and help me with it.

    Regards

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to accurately/precisely count number of months, days from a particular date to a d

    The formula
    =(H2*F2)+(H2*G2/30)
    is probably pretty good as an average. If you want to be exact
    =(H2*F2)+(H2*G2/DAY(EOMONTH(G2,0)))
    EOMONTH(G2,0) returns the last day of your final month (G2). Day pulls out that day (28,29,30, 31)

  5. #5
    Registered User
    Join Date
    07-03-2015
    Location
    Islamabad, Pakistan
    MS-Off Ver
    2007
    Posts
    14

    Re: How to accurately/precisely count number of months, days from a particular date to a d

    Great, Awesome.
    That's what I was looking for.

    Regards

  6. #6
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: How to accurately/precisely count number of months, days from a particular date to a d

    Whoops! I put a DATEDIF solution in, too, since the 'page update' showed this was still unanswered. Then, when I added my comment, I saw all the other activity. Oh well.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

+ 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. Number of days between two dates but include current date in the count
    By Jimmib78 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-20-2015, 11:59 AM
  2. Replies: 4
    Last Post: 04-24-2014, 04:34 AM
  3. [SOLVED] Count the number of whole calandar months in a date range
    By robfresh in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 10-19-2012, 05:28 AM
  4. Replies: 15
    Last Post: 06-26-2012, 07:28 AM
  5. [SOLVED] Count number of days between dates BUT IF null to current date
    By kathi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2006, 12:15 PM
  6. [SOLVED] How do I count the number of days from 1 date to another?
    By Steve R in forum Excel General
    Replies: 3
    Last Post: 02-02-2006, 05:00 PM
  7. [SOLVED] count number of months year to date
    By coal_miner in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-04-2005, 10:06 AM

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