Counta between dates

S

SteveMc

I need to count how many people are going to be eligible
to retire from today() until 12/31/04, in 2005, & in
2006. Their retirement eligibility date's are in a column.

Thanks,

Steve
 
F

Frank Kabel

Hi Steve
1. For this year's retirements:
=SUMPRODUCT(--(A1:A1000>TODAY()),--(YEAR(A1:A1000)=YEAR(TODAY()))

2. For the year 2005:
=SUMPRODUCT(--(YEAR(A1:A1000)=2005))


3. For the year 2006:
=SUMPRODUCT(--(YEAR(A1:A1000)=2006))
 
S

StyeveMc

Thank you very much. It worked great.

-----Original Message-----
Hi Steve
1. For this year's retirements:
=SUMPRODUCT(--(A1:A1000>TODAY()),--(YEAR(A1:A1000)=YEAR (TODAY()))

2. For the year 2005:
=SUMPRODUCT(--(YEAR(A1:A1000)=2005))


3. For the year 2006:
=SUMPRODUCT(--(YEAR(A1:A1000)=2006))


--
Regards
Frank Kabel
Frankfurt, Germany


.
 

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

Top