using a year from a date

A

andy

I am working on a seniority list and want excel to list the number of people
hired in each specific year. What is the formula I would use to just extract
that year of hire information? Sheet 1 lists all the seniority dates and
sheet 2 shows all the statistics so i have to refer to sheet 1 in the
formula. I was trying to use =countif(senioritylist!d3:d58,"="(year)1977)
and so on for consecutive years, but that is not working.
 
J

Jon Peltier

I used this setup in a quick test:

Dates in A2:A27
Years to test in C2:C10

Formula in D2:
=SUM(--(YEAR($A$2:$A$27)=C2))
Array-entered: hold Ctrl+Shift while pressing Enter
If done correctly, Excel puts {curly braces} around the formula

Copy D2, select D3:D10, paste.

- Jon
 
A

andy

thanks again, you helped me again! that was the last formula i needed for
this list.
 

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

Similar Threads

using a year in a date 7
How can I sort Seniority Dates? 3
Calculating seniority 4
next anniversary date 5
Remove date format? 3
Extract list of values from a list 6
Date Comparison Calculation 2
math with year 5

Top