Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,101
Default How do I count the number of records within a date range

How do I count the number of records within a date range.
eg 1/1/2003,1/5/2003,1/10/2004 Using countif between 1/1/2003 and 31/12/2003
= 2
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,718
Default How do I count the number of records within a date range

=COUNTIF(A1:A100,"="&"1/1/2003")-COUNTIF(A1:A100,""&"12/31/2003")

Format cell as General


"Mike" wrote:

How do I count the number of records within a date range.
eg 1/1/2003,1/5/2003,1/10/2004 Using countif between 1/1/2003 and 31/12/2003
= 2

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10,124
Default How do I count the number of records within a date range

try
=sumproduct((year(daterng)=2003)*1)

--
Don Guillett
SalesAid Software

"Mike" wrote in message
...
How do I count the number of records within a date range.
eg 1/1/2003,1/5/2003,1/10/2004 Using countif between 1/1/2003 and
31/12/2003
= 2



  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7,247
Default How do I count the number of records within a date range

"Teethless mama" wrote in message
=COUNTIF(A1:A100,"="&"1/1/2003")-COUNTIF(A1:A100,""&"12/31/2003")


This may cause problems in locales that use non-USA date styles. Better to
use the DATE function to create the dates.

=COUNTIF(A1:A20,"<"&DATE(2006,12,31))-COUNTIF(A1:A20,"<"&DATE(2006,1,1))


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)


"Teethless mama" wrote in message
...
=COUNTIF(A1:A100,"="&"1/1/2003")-COUNTIF(A1:A100,""&"12/31/2003")

Format cell as General


"Mike" wrote:

How do I count the number of records within a date range.
eg 1/1/2003,1/5/2003,1/10/2004 Using countif between 1/1/2003 and
31/12/2003
= 2



  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,101
Default How do I count the number of records within a date range

This worked a treat as I am not using USA style - thank you - Mike

"Chip Pearson" wrote:

"Teethless mama" wrote in message
=COUNTIF(A1:A100,"="&"1/1/2003")-COUNTIF(A1:A100,""&"12/31/2003")


This may cause problems in locales that use non-USA date styles. Better to
use the DATE function to create the dates.

=COUNTIF(A1:A20,"<"&DATE(2006,12,31))-COUNTIF(A1:A20,"<"&DATE(2006,1,1))


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)


"Teethless mama" wrote in message
...
=COUNTIF(A1:A100,"="&"1/1/2003")-COUNTIF(A1:A100,""&"12/31/2003")

Format cell as General


"Mike" wrote:

How do I count the number of records within a date range.
eg 1/1/2003,1/5/2003,1/10/2004 Using countif between 1/1/2003 and
31/12/2003
= 2






  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 23
Default How do I count the number of records within a date range

In my case i have a range for a given month on a spreadsheet and I want a
tally of timely received applications indicated on a summary spreadsheet, the
application is timely if the date received is between the 1st and the 15th of
the given month, will this formula subbing out the dates each month work?
Right now I am waiting until the 16th of each month to enter the number of
applications received manually and I want to automate the process.

Thank you for your assistance.
--
Judy Rose Cohen


"Chip Pearson" wrote:

"Teethless mama" wrote in message
=COUNTIF(A1:A100,"="&"1/1/2003")-COUNTIF(A1:A100,""&"12/31/2003")


This may cause problems in locales that use non-USA date styles. Better to
use the DATE function to create the dates.

=COUNTIF(A1:A20,"<"&DATE(2006,12,31))-COUNTIF(A1:A20,"<"&DATE(2006,1,1))


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)


"Teethless mama" wrote in message
...
=COUNTIF(A1:A100,"="&"1/1/2003")-COUNTIF(A1:A100,""&"12/31/2003")

Format cell as General


"Mike" wrote:

How do I count the number of records within a date range.
eg 1/1/2003,1/5/2003,1/10/2004 Using countif between 1/1/2003 and
31/12/2003
= 2




  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,480
Default How do I count the number of records within a date range

Hi Judy

That would work fine, substituting your dates in the formula.

You could also enter the date for the month that you require in a cell e.g.
in C1 enter 01 May 2008, and with your dates in column A of Sheet1, then
=SUMPRODUCT((MONTH($A$1:$A$1000)=MONTH($C$1))*(DAY ($A$1:$A$1000)<16)*($A$1:$A$1000)<""))

Change the ranges to suit.
You only need to alter the Date in C1 when you want the figures for another
Month
--
Regards
Roger Govier

"Judy Rose" wrote in message
...
In my case i have a range for a given month on a spreadsheet and I want a
tally of timely received applications indicated on a summary spreadsheet,
the
application is timely if the date received is between the 1st and the 15th
of
the given month, will this formula subbing out the dates each month work?
Right now I am waiting until the 16th of each month to enter the number of
applications received manually and I want to automate the process.

Thank you for your assistance.
--
Judy Rose Cohen


"Chip Pearson" wrote:

"Teethless mama" wrote in
message
=COUNTIF(A1:A100,"="&"1/1/2003")-COUNTIF(A1:A100,""&"12/31/2003")


This may cause problems in locales that use non-USA date styles. Better
to
use the DATE function to create the dates.

=COUNTIF(A1:A20,"<"&DATE(2006,12,31))-COUNTIF(A1:A20,"<"&DATE(2006,1,1))


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)


"Teethless mama" wrote in
message
...
=COUNTIF(A1:A100,"="&"1/1/2003")-COUNTIF(A1:A100,""&"12/31/2003")

Format cell as General


"Mike" wrote:

How do I count the number of records within a date range.
eg 1/1/2003,1/5/2003,1/10/2004 Using countif between 1/1/2003 and
31/12/2003
= 2




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
Non updatable Unique Random Number Ian Excel Worksheet Functions 30 September 28th 06 08:19 PM
How can I count a record if it contains a date within a date range hile trotman Excel Worksheet Functions 0 September 20th 06 08:58 PM
count number of occurances of a word in a range John Davies Excel Worksheet Functions 3 February 24th 06 01:46 PM
Counting unique records based on date range aspAddict Excel Worksheet Functions 3 October 26th 05 08:12 PM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM


All times are GMT +1. The time now is 09:58 AM.

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

About Us

"It's about Microsoft Excel"