Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TBA
 
Posts: n/a
Default counting valid dates in a range of cells

Hi there, I have a sheet that I am using to keep tabs on follow up interviews
in a research project. When the participant is interviewed I have either the
date it occurred or "client withdrawn" or some comment like this, or the cell
is blank.

I would like to count the number of cells with a valid date, without
specifying the date.
I would also be interested in a second formula where I can specify two dates
to count between.

many thanks for your valuable suggestions! (I did search first), Theo
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default counting valid dates in a range of cells

Hi!

Try these:

To count all dates: (assumes the dates are in fact true Excel dates)

=COUNT(A1:A10)

To count dates within a range (inclusive):

B1 = start date = 1/1/2006
C1 = end date = 7/1/2006

=COUNTIF(A1:A10,"="&B1)-COUNTIF(A1:A10,""&C1)

Or:

=SUMPRODUCT(--(A1:A10=B1),--(A1:A10<=C1))

Biff

"TBA" wrote in message
...
Hi there, I have a sheet that I am using to keep tabs on follow up
interviews
in a research project. When the participant is interviewed I have either
the
date it occurred or "client withdrawn" or some comment like this, or the
cell
is blank.

I would like to count the number of cells with a valid date, without
specifying the date.
I would also be interested in a second formula where I can specify two
dates
to count between.

many thanks for your valuable suggestions! (I did search first), Theo



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TBA
 
Posts: n/a
Default counting valid dates in a range of cells

thanks, I thionk though that the first formula would count the comments as
well wouldn't it?. I need a count that ignores strings and blanks but does
count dates only?

cheers

"Biff" wrote:

Hi!

Try these:

To count all dates: (assumes the dates are in fact true Excel dates)

=COUNT(A1:A10)

To count dates within a range (inclusive):

B1 = start date = 1/1/2006
C1 = end date = 7/1/2006

=COUNTIF(A1:A10,"="&B1)-COUNTIF(A1:A10,""&C1)

Or:

=SUMPRODUCT(--(A1:A10=B1),--(A1:A10<=C1))

Biff

"TBA" wrote in message
...
Hi there, I have a sheet that I am using to keep tabs on follow up
interviews
in a research project. When the participant is interviewed I have either
the
date it occurred or "client withdrawn" or some comment like this, or the
cell
is blank.

I would like to count the number of cells with a valid date, without
specifying the date.
I would also be interested in a second formula where I can specify two
dates
to count between.

many thanks for your valuable suggestions! (I did search first), Theo




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default counting valid dates in a range of cells


"TBA" wrote in message
...
thanks, I thionk though that the first formula would count the comments as
well wouldn't it?. I need a count that ignores strings and blanks but does
count dates only?


If you think the first formula will count comments as well, the only way to
find out would be to try the formula. Did it count comments? <g

Biff



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TBA
 
Posts: n/a
Default counting valid dates in a range of cells

ahh!, there you go, I was having a glass half empty moment, rather than just
believing the glass was actually full!- thanks for that, all working...

"Biff" wrote:


"TBA" wrote in message
...
thanks, I thionk though that the first formula would count the comments as
well wouldn't it?. I need a count that ignores strings and blanks but does
count dates only?


If you think the first formula will count comments as well, the only way to
find out would be to try the formula. Did it count comments? <g

Biff






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default counting valid dates in a range of cells

You're welcome!

Official explanation: The COUNT function counts numeric values only. It will
ignore text values and empty/blank cells. Dates are really numeric values
that are FORMATTED to look like a date.

6/28/2006 may look like a string but it's really the numeric value 38896
(provided that it hasn't been preformatted or entered specifically as a TEXT
entry).

Biff

"TBA" wrote in message
...
ahh!, there you go, I was having a glass half empty moment, rather than
just
believing the glass was actually full!- thanks for that, all working...

"Biff" wrote:


"TBA" wrote in message
...
thanks, I thionk though that the first formula would count the comments
as
well wouldn't it?. I need a count that ignores strings and blanks but
does
count dates only?


If you think the first formula will count comments as well, the only way
to
find out would be to try the formula. Did it count comments? <g

Biff






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
UDF is updateing cells on another sheet with count from current sheet. John Excel Discussion (Misc queries) 3 March 20th 06 03:58 PM
Counting cells base on a predetermined range [email protected] Excel Worksheet Functions 1 November 16th 05 07:40 PM
Find dates in a range; then sum values in that range by a criteria Anders Excel Discussion (Misc queries) 4 October 21st 05 03:41 PM
Counting occurences of a substring in a range of cells. Jeff Cantwell Excel Worksheet Functions 4 September 8th 05 10:45 PM
monitoring a changing range of cells Kevin Excel Worksheet Functions 1 June 3rd 05 04:54 PM


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