+ Reply to Thread
Results 1 to 3 of 3

How do I get a count of dates within a range..?

  1. #1
    Registered User
    Join Date
    11-27-2003
    Location
    Newcastle upon Tyne, UK
    Posts
    1

    How do I get a count of dates within a range..?

    I have a column with over a thousand different sale dates within it. I am struggling to get a simple countif formula to give me a total of the dates within a certain range. I.e. give me the total number of sales between 01-May-2004 and 01-Jul-2005...

    I'm sure this is a simple one... can anyone help..??!

    Thanks in advance.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699
    If you put your start date in D2, for instance, and end date in D3 this formula will count dates between and on the two for the given range

    =COUNTIF(A1:A1000,">="&D2)-COUNTIF(A1:A1000,">"&D3)

  3. #3
    Bruno Campanini
    Guest

    Re: How do I get a count of dates within a range..?

    "cmharri123" <cmharri123.22js2n_1138792203.9409@excelforum-nospam.com> wrote
    in message news:cmharri123.22js2n_1138792203.9409@excelforum-nospam.com...
    >
    > I have a column with over a thousand different sale dates within it. I
    > am struggling to get a simple countif formula to give me a total of the
    > dates within a certain range. I.e. give me the total number of sales
    > between 01-May-2004 and 01-Jul-2005...



    =SUMPRODUCT((D10:D70>=DATEVALUE("01-05-04"))*
    (D10:D70<=DATEVALUE("01-07-05")))

    Ciao
    Bruno



+ 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