Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Counting dates in cells

How do I count how many times a date appears in a range of cells? I would
also like to count the number of times a range of dates appear in a range of
cells.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting dates in cells

Try these:

A1 = 1/1/2008
B1 = 1/15/2008

Count how many times 1/1/2008 appears in the range D1:D10 -

=COUNTIF(D1:D10,A1)

Count how many dates in the range D1:D10 are between 1/1/2008 and 1/15/2008
(inclusive):

=COUNTIF(D1:D10,"="&A1)-COUNTIF(D1:D10,""&B1)

--
Biff
Microsoft Excel MVP


"chrspty" wrote in message
...
How do I count how many times a date appears in a range of cells? I would
also like to count the number of times a range of dates appear in a range
of
cells.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Counting dates in cells

1 =COUNTIF(A1:A21,DATE(2008,8,1))

2
=COUNTIF(A1:A21,"="&DATE(2008,8,1))-COUNTIF(A1:A21,""&DATE(2008,8,31))
--
David Biddulph

"chrspty" wrote in message
...
How do I count how many times a date appears in a range of cells? I would
also like to count the number of times a range of dates appear in a range
of
cells.



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
Counting days comparing 2 dates excluding empty cells Terry Rogers[_2_] Excel Worksheet Functions 4 August 11th 08 04:27 PM
counting cells containing certain ranges of dates JRD Excel Worksheet Functions 1 December 12th 07 08:55 AM
counting valid dates in a range of cells TBA Excel Worksheet Functions 5 June 29th 06 04:39 AM
counting occasions dates occur between 2 dates hoyt New Users to Excel 5 June 16th 06 08:11 AM
Counting the number cells between two dates Dave Excel Discussion (Misc queries) 3 March 16th 05 02:30 PM


All times are GMT +1. The time now is 01:26 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"