+ Reply to Thread
Results 1 to 4 of 4

COUNTIF DATE RANGE in a Quarter

  1. #1
    Forum Contributor
    Join Date
    08-20-2012
    Location
    London,England
    MS-Off Ver
    Excel 2010
    Posts
    184

    COUNTIF DATE RANGE in a Quarter

    Hi there,

    I have a formula to work out the quarter of a specific date, however, I would like to do a countif on a range.

    Please Login or Register  to view this content.
    How can I convert the above formula into a countifs, as I only get errors with the below

    Please Login or Register  to view this content.
    can you help me convert it into a countifs or sumproduct?

    Many thanks in advance.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.83 for Mac MS 365
    Posts
    8,480

    Re: COUNTIF DATE RANGE in a Quarter

    are you saying that your first formula is being used row by row to put the date in column D into a quarter?
    then the next formula is supposed to count those results?

    could you provide a bit more info about what is in these cells? Perhaps upload a sample?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    08-20-2012
    Location
    London,England
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: COUNTIF DATE RANGE in a Quarter

    Sort of. I wanted the formula to directly countif from the date range, rather than having a "helper column". This is for a waterfall chart, so not from a pivot table.

    I can upload a workbook if it is still not clear.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.83 for Mac MS 365
    Posts
    8,480

    Re: COUNTIF DATE RANGE in a Quarter

    I don't know if this is what you want but lets say your dates are in column D, this will count the number of those for Q3... =SUMPRODUCT(--(MONTH(D12:D15)={7,8,9}))
    you can extend the range but it will only count those with months 7 or 8 or 9 without regard to years.
    does that get you closer? do you have data that spans years and need a year added to it?
    if so this would give you a count based on year... =SUMPRODUCT(--(MONTH(D12:D16)={7,8,9})*(YEAR(D12:D16)=2019))

+ 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. Counting the number of days in a Quarter from a date range
    By dchubbock in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-05-2015, 05:33 AM
  2. COUNTIFS using date range for current quarter
    By Mary Kelleher in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-29-2013, 11:47 AM
  3. Macro to show date range from 'custom' column (Quarter 1) from list of dates
    By danlRB80 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-02-2013, 09:16 AM
  4. Date Range - Start and End Date - Identify dates in a quarter
    By Nikki Fox in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2012, 06:05 AM
  5. Replies: 2
    Last Post: 01-04-2012, 09:15 AM
  6. Assigning period and quarter based on date range. VBA
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-28-2011, 09:04 PM
  7. Combining a Date Range COUNTIF and a general COUNTIF
    By jacobtom in forum Excel General
    Replies: 1
    Last Post: 09-15-2011, 05:06 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