+ Reply to Thread
Results 1 to 5 of 5

DateDif

  1. #1
    Forum Contributor vandanavai's Avatar
    Join Date
    09-04-2006
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256

    DateDif

    Hello,
    Help me to sort out this problem. I have to calculate number of months between two month end dates. As interest is payable for period from due date to date of payment .I am using Datedif function .
    Example:
    Cell A1 contains due date say 31st July, 2006
    Cell B1 contains payment date say 31st Jan, 2007
    Cell C1 contains formula =datedif(A1,B,"m")
    This correctly gives number of months as 6
    But if date in cell B1 is changed to 28th Feb, 2007 , still answer is 6, which should be 7

    Any suggestion

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Hi,

    Change your formula to:

    =DATEDIF(A1,A2+1,"m")

    See Chip Pearson's site on the DATEDIF function for more info.

    http://www.cpearson.com/excel/datedif.htm

    HTH

    Steve

  3. #3
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Used different references so change yourr's as needed.


    Cheers,

    Steve

  4. #4
    Forum Contributor vandanavai's Avatar
    Join Date
    09-04-2006
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256
    Thanks for reply

  5. #5
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    You're welcome.

    Steve

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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