Results 1 to 10 of 10

COUNTIFS Between Date Range

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-24-2010
    Location
    South Africa
    MS-Off Ver
    Office 2003; Office 2007; Office 2010 (Prefered)
    Posts
    102

    COUNTIFS Between Date Range

    Hi All,

    So I have been working on quite an extensive formula and thanks to some help on here I was able to get the formula working as intended. However, I have now gotten an additional request to have the option to select a date range.

    My existing formula is:
    =COUNTIFS(data_source[Period],IF($S$1="-- Period --","<>",$S$1),data_source[Month],IF($S$2="-- Month --","<>",$S$2),data_source[Division],IF($C$3="-- Division --","*",$C$3),data_source[Cost Centre],IF($G$3="-- Cost Centre --","<>0",$G$3),data_source[Manager],IF($K$3="-- Manager --","*",$K$3),data_source[Job Description],IF($O$3="-- Job Description --","*",$O$3),data_source[Employment Type],IF($S$3="-- Employment Type --","*",$S$3),data_source[Gender],IF($C$4="-- Gender --","*",$C$4),data_source[Race],IF($G$4="-- Race --","*",$G$4),data_source[Age Group],IF($K$4="-- Age Group --","*",$K$4),data_source[Education Level],IF($O$4="-- Education Level --","*",$O$4),data_source[Service Years],IF($S$4="-- Service Years --","*",$S$4),data_source[Category 1 Q1.1],E$8)

    on the data_source[Month] criteria section I need to do an additional check, I need to see if a date range has been selected. I will be creating a second date field in V2. So if the user selects a date in S2 only values match S2 need to be returned. If, however the user selects a date in both S2 and V2 all values within the date range needs to be returned. This is what I've come up with thus far for the [Month] criteria part of the formula:

    data_source[Month],IF($V$2="-- Month --",IF($S$2="-- Month --","<>",$S$2),IF(AND(data_source[Month]>=$S$2,data_source[Month]<=$V$2),10,100))

    I'm not sure what to put where the 10 is and the 100 is.

    Here's the sample workbook

    http://www.excelforum.com/attachment...oard_v1.0.xlsx

    Thanks
    Last edited by SalientAnimal; 10-30-2014 at 04:24 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 05-28-2014, 06:52 AM
  2. [SOLVED] COUNTIFS With Date Range
    By OlYeller21 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-03-2013, 08:32 AM
  3. [SOLVED] COUNTIFS with Date Range
    By whizbee in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-28-2013, 03:44 PM
  4. Using countifs with date range, and summing values in that range
    By bmcoonan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-30-2013, 11:28 AM
  5. date range and COUNTIFS
    By momus12 in forum Excel General
    Replies: 8
    Last Post: 12-28-2008, 05:38 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