Formula to count number of dates in an array

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top