# Thread: countif between two dates (2000 SR1)

1. ## countif between two dates (2000 SR1)

What's the simplest way to count how many entries in a column of dates are between two dates (preferrably without nesting)

Thanks
Jim

2. ## Re: countif between two dates (2000 SR1)

Say that your date entries are in A1:A100, and that the start and end dates you want to compare them to are in C1 and C2. Then you can use the following formula:

=COUNT(IF((A1:A100>=C1)*(A1:A100<=C2),A1:A100))

entered as an array formula, that is, confirm with Ctrl+Shift+Enter instead of Enter. This formula includes dates equal to those in C1 and C2. If you want to exclude those, use > and < instead of >= and <=.

3. ## Re: countif between two dates (2000 SR1)

If the dates are in A1:A30, and you want to count the number between (inclusive the end dates) 1/10/2002 and 1/20/2002, ten you could use the following:

[pre]
=COUNTIF(A1:A30,">="&DATEVALUE("1/10/2002"))-COUNTIF(A1:A30,">"&DATEVALUE("1/20/2002"))
[pre]

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•