ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Counting the dates in a column (https://www.excelbanter.com/excel-discussion-misc-queries/139009-counting-dates-column.html)

deaconj999

Counting the dates in a column
 
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


David Biddulph[_2_]

Counting the dates in a column
 
Firstly, if you want to apply a condition you need COUNTIF(), not COUNT()
Secondly, the condition "<=today()" won't work, you'll need ,"<="&today()
Thirdly, you can test for <= TODAY(), and then subtract those <= three
months ago to get those between, so try
=COUNTIF($AL$1000:$AL$5000,"<="&TODAY())
-COUNTIF($AL$1000:$AL$5000,"<="&DATE(YEAR(TODAY()), MONTH(TODAY())-3,DAY(TODAY())))
--
David Biddulph

"deaconj999" wrote in message
ups.com...
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





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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com