+ Reply to Thread
Results 1 to 6 of 6

Month Count using Two Dates

  1. #1
    Registered User
    Join Date
    09-23-2017
    Location
    Toronto, ON
    MS-Off Ver
    Microsoft Office 365 Subscription MSO (Version 2310 Build 16.0.1
    Posts
    52

    Question Month Count using Two Dates

    I was trying to count MONTHS using two dates. (eg. 1-JAN-2018 to 31-JAN-2018), my count results gives me 0.
    Sorry, I cant not attach my file in Excel Forum.
    Here is an attachment. -> One Drive

    Please advise and help.

    Thank You..

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Month Count using Two Dates

    In D3 copied down, try...

    =DATEDIF(B3,EOMONTH(C3,-1), "m")

    or since every date in C is the beginning of a month, just subtract 1

    =DATEDIF(B3,C3-1, "m")
    Last edited by jeffreybrown; 02-24-2018 at 11:46 AM.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    09-23-2017
    Location
    Toronto, ON
    MS-Off Ver
    Microsoft Office 365 Subscription MSO (Version 2310 Build 16.0.1
    Posts
    52

    Re: Month Count using Two Dates

    sorry, Jeff it does not work,
    for example, 1/Feb/2015 to 31/Jul/2015, result should be 6 month count. (including FEB, MAR, APR, MAY, JUN, JUL).

    Thanks for your quick response.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Month Count using Two Dates

    =DATEDIF(B3,C3+1, "m")

  5. #5
    Registered User
    Join Date
    09-23-2017
    Location
    Toronto, ON
    MS-Off Ver
    Microsoft Office 365 Subscription MSO (Version 2310 Build 16.0.1
    Posts
    52

    Re: Month Count using Two Dates

    Perfect, Thanks for your kind help.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,732

    Re: Month Count using Two Dates

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. 6 month rebooking count- Count if with either criteria met
    By Carolinanilorac in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-04-2015, 11:24 AM
  2. [SOLVED] Month Day count
    By WD86 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-23-2015, 08:47 AM
  3. If month in this cell is in current month, count this other cell?
    By Spauldide in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-09-2013, 03:15 PM
  4. Count number of networkdays for each month in a multi month period
    By dreddster in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-10-2013, 11:12 AM
  5. [SOLVED] Count by month
    By bobby769 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-25-2012, 10:41 PM
  6. Replies: 6
    Last Post: 12-06-2012, 10:15 PM
  7. count if ... # of next month or last month help from today
    By lightkeeper in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-13-2010, 03:09 PM

Tags for this Thread

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