+ Reply to Thread
Results 1 to 3 of 3

COUNTIFS using date range for current quarter

  1. #1
    Registered User
    Join Date
    08-29-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    2

    COUNTIFS using date range for current quarter

    Good morning,

    I am working on a summary sheet that includes multiple criteria including work completed for the current month, quarter and year (month, quarter and year in separate columns).

    The following formula for the Quarter returns the correct value
    =COUNTIFS('CP01'!$F:$F,"="&"E. PA/S. NJ/DE",'CP01'!$BP:$BP,">"&"6/30/13",'CP01'!$BP:$BP,"<"&"10/1/13")

    But... I am trying to replace the dates with cell references. "6/30/13" would be replaced with a cell reference for the beginning of the quarter and "10/1/13" would be replaced with a cell reference for TODAY() to return a value of work completed to date not total for entire quarter. But this keeps returning a "0" value.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: COUNTIFS using date range for current quarter

    Something like this doesn't work?:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Where: A1 contains the last date of the quarter before the one you're interested in
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    08-29-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: COUNTIFS using date range for current quarter

    Thanks Ron,
    That's my issue, when I replace an actual date with a cell reference it returns a "0" value. The original formula I posted returns a value of 149, but when I use the following formula it returns a value of 0. (Cell KH1 = "6/31/2013")

    =COUNTIFS('CP01'!$F:$F,"="&"E. PA/S. NJ/DE",'CP01'!$BO:$BO,">"&$KH$1,'CP01'!$BO:$BO,"<"&TODAY())

    Mary

+ 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. 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
  2. Replies: 1
    Last Post: 05-17-2013, 05:53 AM
  3. 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
  4. Replies: 2
    Last Post: 01-04-2012, 09:15 AM
  5. 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

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