Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Count records where date is within the last week

I need to count the number of records that have had a date set within the
last week. For reporting other statistics in the same worksheet, i'm use
DCOUNTA, and i assumed i could do the same with this requirement, by using
the TODAY() function. I can't seem to get it to work:-

My data is:-

A B C
DQ001 01/06/2009 01/07/2009
DQ002 14/07/2009

I assumed i could use this:-

=DCOUNTA(A1:C2,"A",D1:E2)

with this criteria range

D E
B B
<today() today()-7

To produce a count of records where B is within the last week, in this case
the answer would be 1. I'm pretty sure the logic is ok, but can't get it to
work.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Count records where date is within the last week

The below formula will count the number of dates in Column B which are within
the last week...

=COUNTIF(B:B,"" & TODAY()-7)

If this post helps click Yes
---------------
Jacob Skaria


"pmjb007" wrote:

I need to count the number of records that have had a date set within the
last week. For reporting other statistics in the same worksheet, i'm use
DCOUNTA, and i assumed i could do the same with this requirement, by using
the TODAY() function. I can't seem to get it to work:-

My data is:-

A B C
DQ001 01/06/2009 01/07/2009
DQ002 14/07/2009

I assumed i could use this:-

=DCOUNTA(A1:C2,"A",D1:E2)

with this criteria range

D E
B B
<today() today()-7

To produce a count of records where B is within the last week, in this case
the answer would be 1. I'm pretty sure the logic is ok, but can't get it to
work.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert regular Date to Week Ending or Week Beginning Dates Sam H Excel Discussion (Misc queries) 5 April 3rd 23 04:39 PM
How do I count the number of records within a date range Mike New Users to Excel 6 May 29th 08 05:45 PM
How do I count the number of records within a date range? New issu Larry G Excel Worksheet Functions 1 March 13th 07 03:05 PM
How t count by week whatever is with in the week (two criteria, ma Adnan Excel Discussion (Misc queries) 8 November 13th 06 09:17 AM
count records in a date range jiml Excel Discussion (Misc queries) 3 January 10th 06 08:28 PM


All times are GMT +1. The time now is 07:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"