PC Review


Reply
Thread Tools Rate Thread

COUNTIF for numbers of dates in column which are 30 days older than today

 
 
jonathan.glaser@gmail.com
Guest
Posts: n/a
 
      19th Sep 2006
I have a column with dates. I need a count of how many of these date
are older than today's date. I tried:

=COUNTIF(L7:L155,"-(=TODAY())>30")

and it returns 0

Anyone able to help here, please?

Thanks
Jonathan

 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWF4?=
Guest
Posts: n/a
 
      19th Sep 2006
Try: =COUNTIF(L7:L155,"<"&TODAY()-30)
to return the count of dates in the range which are 30 days older than today
(Above assumes there's no blank cells within the range)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"(E-Mail Removed)" wrote:

> I have a column with dates. I need a count of how many of these date
> are older than today's date. I tried:
>
> =COUNTIF(L7:L155,"-(=TODAY())>30")
>
> and it returns 0
>
> Anyone able to help here, please?
>
> Thanks
> Jonathan
>
>

 
Reply With Quote
 
=?Utf-8?B?TWF4?=
Guest
Posts: n/a
 
      19th Sep 2006
Try: =COUNTIF(L7:L155,"<"&TODAY()-30)
to return the count of dates in the range which are 30 days older than today
(Above assumes there's no blank cells within the range)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"(E-Mail Removed)" wrote:

> I have a column with dates. I need a count of how many of these date
> are older than today's date. I tried:
>
> =COUNTIF(L7:L155,"-(=TODAY())>30")
>
> and it returns 0
>
> Anyone able to help here, please?
>
> Thanks
> Jonathan
>
>

 
Reply With Quote
 
=?Utf-8?B?TWF4?=
Guest
Posts: n/a
 
      19th Sep 2006
> (Above assumes there's no blank cells within the range)

If there's the possibility of blank cells within L7:L155, or formula cells
returning zero length null strings: "" within L7:L155, then perhaps it's
easier/better to use this alternative instead of the COUNTIF:
=SUMPRODUCT((L7:L155<TODAY()-30)*(L7:L155<>""))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
 
Reply With Quote
 
=?Utf-8?B?TWF4?=
Guest
Posts: n/a
 
      19th Sep 2006
> (Above assumes there's no blank cells within the range)

If there's the possibility of blank cells within L7:L155, or formula cells
returning zero length null strings: "" within L7:L155, then perhaps it's
easier/better to use this alternative instead of the COUNTIF:
=SUMPRODUCT((L7:L155<TODAY()-30)*(L7:L155<>""))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
 
Reply With Quote
 
PBalmanno
Guest
Posts: n/a
 
      19th Sep 2006
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a column with dates. I need a count of how many of these date
> are older than today's date. I tried:
>
> =COUNTIF(L7:L155,"-(=TODAY())>30")
>
> and it returns 0
>
> Anyone able to help here, please?
>
> Thanks
> Jonathan
>

Try this, Column A has dates, Column B calculates the number of days ("d")
using the Dateif Function and Column C counts it if it is greater than 30
days. Note the brackets "{}" which are entered using Ctrl+Shift+Enter at the
end of the fourmula. Another variation of the formula in Column C that
works is {=COUNTIF(B:B,">30")}.
A B C
=DATEDIF(B1,NOW(),"d") {=COUNTIF(B1:B9,">30")}
1 7/18/2006 63 9
2 7/19/2006 62
3 7/20/2006 61
4 7/21/2006 60
5 7/22/2006 59
6 7/23/2006 58
7 7/24/2006 57
8 7/25/2006 56
9 7/26/2006 55


 
Reply With Quote
 
PBalmanno
Guest
Posts: n/a
 
      19th Sep 2006
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a column with dates. I need a count of how many of these date
> are older than today's date. I tried:
>
> =COUNTIF(L7:L155,"-(=TODAY())>30")
>
> and it returns 0
>
> Anyone able to help here, please?
>
> Thanks
> Jonathan
>

Try this, Column A has dates, Column B calculates the number of days ("d")
using the Dateif Function and Column C counts it if it is greater than 30
days. Note the brackets "{}" which are entered using Ctrl+Shift+Enter at the
end of the fourmula. Another variation of the formula in Column C that
works is {=COUNTIF(B:B,">30")}.
A B C
=DATEDIF(B1,NOW(),"d") {=COUNTIF(B1:B9,">30")}
1 7/18/2006 63 9
2 7/19/2006 62
3 7/20/2006 61
4 7/21/2006 60
5 7/22/2006 59
6 7/23/2006 58
7 7/24/2006 57
8 7/25/2006 56
9 7/26/2006 55


 
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
Computing days between TODAY() and older date in a cell =?Utf-8?B?QmlnIFVUIEZhbg==?= Microsoft Excel Misc 3 14th Nov 2006 08:14 PM
COUNTIF for numbers of dates in column which are 30 days older than today jonathan.glaser@gmail.com Microsoft Excel Worksheet Functions 0 19th Sep 2006 05:34 AM
How do I add a range by date over 90 days older than today =?Utf-8?B?Sm9obiBEZUxvc2E=?= Microsoft Excel Misc 4 16th Feb 2006 09:30 PM
Dates older than 29 days =?Utf-8?B?YWI=?= Microsoft Excel Misc 2 16th Jun 2005 09:52 PM
Overdue dates 7 days old or older? Dave B Microsoft Access Getting Started 2 1st Mar 2004 03:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:02 PM.