+ Reply to Thread
Results 1 to 5 of 5

Counting dates in a range

  1. #1
    Forum Contributor
    Join Date
    06-11-2009
    Location
    glasgow
    MS-Off Ver
    Excel 2003
    Posts
    100

    Counting dates in a range

    Hi, I need to do a total of the dates entered in the RAW DATA sheet that fall in between todays date and 7 days ago. I am comparing it to B3 in sheet 2. Have tried a COUNTIF but cannot get it to work - any ideas
    Attached Files Attached Files
    Last edited by stevewilde; 07-06-2009 at 09:37 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,061

    Re: Counting dates in a range

    Try this:

    =SUMPRODUCT(--(RAW_DATA!$E$2:$E$182<=A3);--(RAW_DATA!$E$2:$E$182>=B3))

    Also replace <= and >= with < and > if you don't need dates written in table.

    Also replace ; with , if you get error
    Never use Merged Cells in Excel

  3. #3
    Forum Contributor
    Join Date
    06-11-2009
    Location
    glasgow
    MS-Off Ver
    Excel 2003
    Posts
    100

    Re: Counting dates in a range

    Many thanks, that worked a treat.

    What do you mean about if you don't need dates written in table

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,061

    Re: Counting dates in a range

    If they need to be included then <= if not then <

  5. #5
    Forum Contributor
    Join Date
    06-11-2009
    Location
    glasgow
    MS-Off Ver
    Excel 2003
    Posts
    100

    Re: Counting dates in a range

    I see - thanks for the help

+ 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