Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Count number of months

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I want to put a past date, say
    6/99 in cell A1 and a more recent date say
    4/02 in cell B1
    I want the number of months to be counted and placed in C1

    Thanks
    John

  2. #2
    MrExcel MVP Barrie Davidson's Avatar
    Join Date
    Feb 2002
    Location
    Winnipeg
    Posts
    2,330
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-03-07 19:09, JRyan wrote:
    I want to put a past date, say
    6/99 in cell A1 and a more recent date say
    4/02 in cell B1
    I want the number of months to be counted and placed in C1

    Thanks
    John
    Try
    =(YEAR(B1)-YEAR(A1))*12+MONTH(B1)-MONTH(A1)

    Regards,
    Barrie Davidson

    "You're only given a little spark of madness. You mustn't lose it." - Robin Williams

  3. #3
    New Member
    Join Date
    Mar 2002
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-03-07 19:13, Barrie Davidson wrote:
    On 2002-03-07 19:09, JRyan wrote:
    I want to put a past date, say
    6/99 in cell A1 and a more recent date say
    4/02 in cell B1
    I want the number of months to be counted and placed in C1

    Thanks
    John
    Try
    =(YEAR(B1)-YEAR(A1))*12+MONTH(B1)-MONTH(A1)

    Regards,
    HI Barrie
    I don't understand it but hey it works great and I thank you very much for your help
    John

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •