+ Reply to Thread
Results 1 to 4 of 4

Calculating number of complete and partial months

  1. #1
    Registered User
    Join Date
    03-29-2005
    Posts
    2

    Calculating number of complete and partial months

    Please can anyone help me - I am trying to calculate the number of complete and partial monts in a period. I am using the formula (YEAR(E22)-YEAR(D22))*12+MONTH(E22)-MONTH(D22) but this is giving me 37 months for the period 14/05/2002 to 14/05/2005, I need this to give me 36 months and similarly for 1/07/2005 to 01/07/2005 I need to have the result "1" not zero. This is driving me mad!

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516
    try

    =DATEDIF(D22,C22,"m")

  3. #3
    Registered User
    Join Date
    03-29-2005
    Posts
    2
    Thanks but tried that, it only works out the no. of complete months

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516
    period 14/05/2002 to 14/05/2005, I need this to give me 36 months
    similarly for 1/07/2005 to 01/07/2005 I need to have the result "1" not zero
    I don't understand what you are trying to do.

+ 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