+ Reply to Thread
Results 1 to 3 of 3

Counting dates within a range

  1. #1
    Registered User
    Join Date
    07-26-2011
    Location
    california
    MS-Off Ver
    Excel 2007
    Posts
    43

    Counting dates within a range

    I'm trying to use countifs to count dates that fall within a range >= and <=.

    It doesn't seem to recognize the <= statement....what am I missing?

    =COUNTIFS('MW Project Tracker'!AF:AF,">=2/1/13")+COUNTIFS('MW Project Tracker'!AF:AF,"<=2/28/13")

    Plz help

    Thanks

    MIke

  2. #2
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Counting dates within a range

    Hello,

    You are adding two COUNTIFS together while in fact you can do it with just one ...
    Try this instead
    Please Login or Register  to view this content.
    (copy pasta from Ford)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools

    Regards,
    Lem

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Counting dates within a range

    Use cells to hold the date criteria:

    A1 = 2/1/13
    B1 = 2/28/13

    =COUNTIFS('MW Project Tracker'!AF:AF,">="&A1,'MW Project Tracker'!AF:AF,"<="&B1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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