Formula to count number of dates in an array
I have a column of dates and it will keep on increasing. I need a formula
that will count how many items I have between a start and an end date. I can do the =if portion but I'm tired of looking for how to get it to add up how many meet my condition. |
With dates in column A, start date in C1, and end date in
D1, try: =COUNTIF(A:A,"="&C1)-COUNTIF(A:A,""&D1) HTH Jason Atlanta, GA -----Original Message----- I have a column of dates and it will keep on increasing. I need a formula that will count how many items I have between a start and an end date. I can do the =if portion but I'm tired of looking for how to get it to add up how many meet my condition. . |
On Thu, 7 Apr 2005 10:45:05 -0700, "Lilasviolet"
wrote: I have a column of dates and it will keep on increasing. I need a formula that will count how many items I have between a start and an end date. I can do the =if portion but I'm tired of looking for how to get it to add up how many meet my condition. What do you mean, exactly? To count the number of rows that contain a date between the start and end dates: =COUNTIF(dts,"="&StartDate) - COUNTIF(dts,""&EndDate) where dts is your column containing the dates. The same logic can be applied to SUMIF if that is more appropriate for your setup. --ron |
All times are GMT +1. The time now is 12:42 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com