+ Reply to Thread
Results 1 to 4 of 4

help for formula to count number of reporting months which fall between certain dates

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    sydney
    MS-Off Ver
    Excel 365
    Posts
    71

    help for formula to count number of reporting months which fall between certain dates

    hi

    i need help to for a formula (possiblity an if statement) or maybe there is a better way to do it to count the number of reporting months which fall between 2 specific dates. in the example attached the 2 specific dates are in columns A and B and always begin on the 1st of the month

    the reporting start date and end date is looking at the total month, not just up to the 1st. so for example line 3, 1/1/20 to 1/10/20 is to treat as 10 months (jan to october)

    The formula needed is to calculate the numbers in column G, the number of reporting periods which fall between the start date and end dates.

    all the dates will always begin with a 1st on the month.

    however I also need something similar however that will work for quarters, however if the whole reporting quarter has not happened then it needs to populate with completed reporting quarters


    many thanks
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: help for formula to count number of reporting months which fall between certain dates

    Try to get start date with max of 2 start date, end date with min of 2 end date, then
    G3:
    Please Login or Register  to view this content.
    for the quarterly, it is unclear between expected manual outcome and words, i offer 2 options then you can choose which matchs:

    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    Quang PT

  3. #3
    Registered User
    Join Date
    10-09-2012
    Location
    sydney
    MS-Off Ver
    Excel 365
    Posts
    71

    Re: help for formula to count number of reporting months which fall between certain dates

    excellent this works perfectly

    thank you so much!

  4. #4
    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,853

    Re: help for formula to count number of reporting months which fall between certain dates

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    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. [SOLVED] Count number of dates in a list that fall within a given month.
    By Gooford in forum Excel General
    Replies: 3
    Last Post: 04-25-2018, 10:24 AM
  2. [SOLVED] Count number of months between two dates
    By nadeem.ansari1980 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-21-2014, 02:36 PM
  3. Replies: 8
    Last Post: 02-20-2014, 05:46 PM
  4. [SOLVED] The months that the number of days fall into
    By danfullwood in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 08-28-2013, 10:07 AM
  5. Replies: 7
    Last Post: 03-26-2013, 08:32 AM
  6. Replies: 3
    Last Post: 07-31-2012, 04:21 PM
  7. Replies: 3
    Last Post: 08-08-2005, 06:05 PM

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