Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Evgenia
 
Posts: n/a
Default Count cells with dates


Hi,

Please help with the formulae, I need to COUNT cells that contain date
(dd/mm/yyyy).

Your help is appreciated.


--
Evgenia
------------------------------------------------------------------------
Evgenia's Profile: http://www.excelforum.com/member.php...o&userid=28946
View this thread: http://www.excelforum.com/showthread...hreadid=486790

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Barb Reinhardt
 
Posts: n/a
Default Count cells with dates

=COUNTIF(A1:A15,"11/21/2005")

"Evgenia" wrote in
message ...

Hi,

Please help with the formulae, I need to COUNT cells that contain date
(dd/mm/yyyy).

Your help is appreciated.


--
Evgenia
------------------------------------------------------------------------
Evgenia's Profile:
http://www.excelforum.com/member.php...o&userid=28946
View this thread: http://www.excelforum.com/showthread...hreadid=486790



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Count cells with dates

Hi Barb,

That doesn't work in the UK. You should use date independent formulae such
as

=COUNTIF(A1:A15,DATE(2005,11,21))

or

=COUNTIF(A1:A15,--"2005-11-21")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Barb Reinhardt" wrote in message
...
=COUNTIF(A1:A15,"11/21/2005")

"Evgenia" wrote in
message ...

Hi,

Please help with the formulae, I need to COUNT cells that contain date
(dd/mm/yyyy).

Your help is appreciated.


--
Evgenia
------------------------------------------------------------------------
Evgenia's Profile:
http://www.excelforum.com/member.php...o&userid=28946
View this thread:

http://www.excelforum.com/showthread...hreadid=486790





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Evgenia
 
Posts: n/a
Default Count cells with dates


Thanks,
but i need to count cells that contain any date, not only a specific
one.
Can you help with that?


--
Evgenia
------------------------------------------------------------------------
Evgenia's Profile: http://www.excelforum.com/member.php...o&userid=28946
View this thread: http://www.excelforum.com/showthread...hreadid=486790

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Count cells with dates

You need a UDF

Function CountDates(rng As Range)
Dim cell As Range
For Each cell In rng
If IsDate(cell.Value) Then
CountDates = CountDates + 1
End If
Next cell
End Function

=CountDates(A1:A15)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Evgenia" wrote in
message ...

Thanks,
but i need to count cells that contain any date, not only a specific
one.
Can you help with that?


--
Evgenia
------------------------------------------------------------------------
Evgenia's Profile:

http://www.excelforum.com/member.php...o&userid=28946
View this thread: http://www.excelforum.com/showthread...hreadid=486790



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
Count the number of Cells in one ROW with conditions Amanda Excel Worksheet Functions 2 September 9th 05 04:03 PM
Count cells with specific values in the cells next to them? Christopher Excel Worksheet Functions 2 September 8th 05 05:49 PM
Count designated cells VB Excel Worksheet Functions 1 August 3rd 05 02:25 AM
Can I count how many grey-filled cells are in a row ? AnthonyG Excel Worksheet Functions 1 February 4th 05 10:08 AM
Count number of shaded cells Maddoktor Excel Discussion (Misc queries) 2 December 20th 04 08:35 PM


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