PC Review


Reply
Thread Tools Rate Thread

How to count dates in a column between 2 dates

 
 
deaconj999
Guest
Posts: n/a
 
      15th Apr 2007
Hi All,

At present I have a formula that counts the number of date entries in
a column.

=COUNT($AL$1000:$AL$5000,"<=today()")

I need to change it so that it counts the dates between today and the
last 3 months.

Can someone tell me how, I have tried all manner of configurations.

Many thanks

Joe

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sk1heQ==?=
Guest
Posts: n/a
 
      15th Apr 2007
Give this a try: Watch for the word wraping below

=COUNTIF($AL$1000:$AL$5000,"<="&TODAY())-COUNTIF($AL$1000:$AL$5000,"<="&DATE(YEAR(TODAY()),MONTH(TODAY())-3,DAY(TODAY())))

HTH

"deaconj999" wrote:

> Hi All,
>
> At present I have a formula that counts the number of date entries in
> a column.
>
> =COUNT($AL$1000:$AL$5000,"<=today()")
>
> I need to change it so that it counts the dates between today and the
> last 3 months.
>
> Can someone tell me how, I have tried all manner of configurations.
>
> Many thanks
>
> Joe
>
>

 
Reply With Quote
 
Nick Hodge
Guest
Posts: n/a
 
      15th Apr 2007
This may work

=COUNTIF($AL$1000:$AL$5000,"<"&DATE(YEAR(TODAY()),MONTH(TODAY())-3,DAY(TODAY())))

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(E-Mail Removed)DTHIS
web: www.nickhodge.co.uk
blog: www.nickhodge.co.uk/blog/

FREE UK OFFICE USER GROUP MEETING, MS READING, 27th APRIL 2007
www.officeusergroup.co.uk

"deaconj999" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All,
>
> At present I have a formula that counts the number of date entries in
> a column.
>
> =COUNT($AL$1000:$AL$5000,"<=today()")
>
> I need to change it so that it counts the dates between today and the
> last 3 months.
>
> Can someone tell me how, I have tried all manner of configurations.
>
> Many thanks
>
> Joe
>


 
Reply With Quote
 
=?Utf-8?B?Sk1heQ==?=
Guest
Posts: n/a
 
      15th Apr 2007
If OP has Future Dates in Column A, wouldn't they also be included in the
count (He wanted to limit from 3 months back to today)?

"Nick Hodge" wrote:

> This may work
>
> =COUNTIF($AL$1000:$AL$5000,"<"&DATE(YEAR(TODAY()),MONTH(TODAY())-3,DAY(TODAY())))
>
> --
> HTH
> Nick Hodge
> Microsoft MVP - Excel
> Southampton, England
> (E-Mail Removed)DTHIS
> web: www.nickhodge.co.uk
> blog: www.nickhodge.co.uk/blog/
>
> FREE UK OFFICE USER GROUP MEETING, MS READING, 27th APRIL 2007
> www.officeusergroup.co.uk
>
> "deaconj999" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi All,
> >
> > At present I have a formula that counts the number of date entries in
> > a column.
> >
> > =COUNT($AL$1000:$AL$5000,"<=today()")
> >
> > I need to change it so that it counts the dates between today and the
> > last 3 months.
> >
> > Can someone tell me how, I have tried all manner of configurations.
> >
> > Many thanks
> >
> > Joe
> >

>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      15th Apr 2007
Check your other posts, too.

deaconj999 wrote:
>
> Hi All,
>
> At present I have a formula that counts the number of date entries in
> a column.
>
> =COUNT($AL$1000:$AL$5000,"<=today()")
>
> I need to change it so that it counts the dates between today and the
> last 3 months.
>
> Can someone tell me how, I have tried all manner of configurations.
>
> Many thanks
>
> Joe


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?Sk1heQ==?=
Guest
Posts: n/a
 
      15th Apr 2007
Nick,
Sorry -- just forget what I just wrote - I just came back to look this over,
and I'm not half-way sure what I said is right or not, I'm nearly brain-dead
status..
Jim

"Nick Hodge" wrote:

> This may work
>
> =COUNTIF($AL$1000:$AL$5000,"<"&DATE(YEAR(TODAY()),MONTH(TODAY())-3,DAY(TODAY())))
>
> --
> HTH
> Nick Hodge
> Microsoft MVP - Excel
> Southampton, England
> (E-Mail Removed)DTHIS
> web: www.nickhodge.co.uk
> blog: www.nickhodge.co.uk/blog/
>
> FREE UK OFFICE USER GROUP MEETING, MS READING, 27th APRIL 2007
> www.officeusergroup.co.uk
>
> "deaconj999" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi All,
> >
> > At present I have a formula that counts the number of date entries in
> > a column.
> >
> > =COUNT($AL$1000:$AL$5000,"<=today()")
> >
> > I need to change it so that it counts the dates between today and the
> > last 3 months.
> >
> > Can someone tell me how, I have tried all manner of configurations.
> >
> > Many thanks
> >
> > Joe
> >

>

 
Reply With Quote
 
merjet
Guest
Posts: n/a
 
      15th Apr 2007
Here is another formula:
=SUMPRODUCT(($AL$1000:$AL$5000<=TODAY())*($AL$1000:$AL
$5000>=EDATE(TODAY(),-3)))

Hth,
Merjet

 
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
How can I count dates if few duplicates in a column Tariq Aziz Microsoft Excel Misc 3 25th May 2010 05:07 PM
count dates in a column =?Utf-8?B?Q0pQ?= Microsoft Excel Worksheet Functions 2 17th Nov 2007 01:00 AM
How to Count Months in a Column of Dates Dexsquab Microsoft Excel Programming 5 30th Jan 2006 07:33 PM
Count if date is between two dates and value in another column equ =?Utf-8?B?bWdfc3Zfcg==?= Microsoft Excel Worksheet Functions 2 6th Dec 2005 02:31 PM
Formula - count certain dates in a column p3project Microsoft Excel Misc 2 25th Mar 2004 07:51 PM


Features
 

Advertising
 

Newsgroups
 


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