PC Review


Reply
Thread Tools Rate Thread

Count the number of cells containing a date within a range

 
 
Scoffers
Guest
Posts: n/a
 
      24th Feb 2009
Investigated using COUNTIF but from what I can see you need to set specific
criteria i.e. an exact date rather than just a cell with any date in it.

I know I could count the blank cells and take them from the total number of
cells using COUNT but this is long winded.

Any help welcome.
--
Scoffers
 
Reply With Quote
 
 
 
 
Pete_UK
Guest
Posts: n/a
 
      24th Feb 2009
If you use COUNT it will not count blank cells. Similarly,

=COUNTIF(A:A,"<>")

will count all cells in column A that are not empty.

Hope this helps.

Pete

On Feb 24, 9:23*am, Scoffers <Scoff...@discussions.microsoft.com>
wrote:
> Investigated using COUNTIF but from what I can see you need to set specific
> criteria i.e. an exact date rather than just a cell with any date in it.
>
> I know I could count the blank cells and take them from the total number of
> cells using COUNT but this is long winded.
>
> Any help welcome.
> --
> Scoffers


 
Reply With Quote
 
Stefi
Guest
Posts: n/a
 
      24th Feb 2009
You can refer to a cell containing a date:
=COUNTIF(B:B,A2)
returns how many times date in A2 occurs in column B!

The other part of your post is not understandable for me, please specify it
in details, possibly with an example!

Regards,
Stefi

„Scoffers” ezt *rta:

> Investigated using COUNTIF but from what I can see you need to set specific
> criteria i.e. an exact date rather than just a cell with any date in it.
>
> I know I could count the blank cells and take them from the total number of
> cells using COUNT but this is long winded.
>
> Any help welcome.
> --
> Scoffers

 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      24th Feb 2009
Since real dates are just numbers
=COUNT(A:A)
would be easiest, provided the col is clean data containing only real, valid
dates
(btw, blank cells won't affect COUNT)

If the data could be mixed, ie real dates interspersed with zeros or other
real nums which are not valid dates, something like this should provide more
robust results, ie check it within a known, valid date range, eg:
=SUMPRODUCT((A1:A10>=--"5 Jan 2009")*(A1:A10<=--"18 Jan 2009"))

High-five? Click Yes below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,500 Files:370 Subscribers:66
xdemechanik
---
"Scoffers" wrote:
> Investigated using COUNTIF but from what I can see you need to set specific
> criteria i.e. an exact date rather than just a cell with any date in it.
>
> I know I could count the blank cells and take them from the total number of
> cells using COUNT but this is long winded.


 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      24th Feb 2009
=SUMPRODUCT(--(A2:A200>=start_date_cell),--(A2:A200<=end_date_cell))

--
__________________________________
HTH

Bob

"Scoffers" <(E-Mail Removed)> wrote in message
news:F06CD777-68C7-4F15-85DB-(E-Mail Removed)...
> Investigated using COUNTIF but from what I can see you need to set
> specific
> criteria i.e. an exact date rather than just a cell with any date in it.
>
> I know I could count the blank cells and take them from the total number
> of
> cells using COUNT but this is long winded.
>
> Any help welcome.
> --
> Scoffers



 
Reply With Quote
 
David Biddulph
Guest
Posts: n/a
 
      24th Feb 2009
=COUNTIF(A1:A100,">="&B1)-COUNTIF(A1:A100,">"&C1) if your limits (inclusive)
are in B1 and C1.
--
David Biddulph

"Scoffers" <(E-Mail Removed)> wrote in message
news:F06CD777-68C7-4F15-85DB-(E-Mail Removed)...
> Investigated using COUNTIF but from what I can see you need to set
> specific
> criteria i.e. an exact date rather than just a cell with any date in it.
>
> I know I could count the blank cells and take them from the total number
> of
> cells using COUNT but this is long winded.
>
> Any help welcome.
> --
> Scoffers



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count number of cells containing a specific date range --Viewpoint Microsoft Excel Discussion 7 30th Dec 2009 05:02 PM
How do Count a the number of times a date range appears within a date range!? leelondon Microsoft Excel Discussion 5 4th Oct 2006 12:12 PM
Count Number of Cells in a Range TKrepitch@aol.com Microsoft Excel Discussion 3 5th Jun 2006 07:33 PM
Count number of cells with value between date range - Excel Sumo Windows XP 1 20th Jul 2005 01:14 AM
A calculation to count all cells ='D' where the offset cells in range have dates <= todays date AlanN Microsoft Excel Misc 2 29th Jan 2004 03:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:20 AM.