Count FS Excel Activity
Count FS Excel Activity
Objective
Learn how to use the COUNTIFS function to count rows that meet multiple criteria.
Dataset Setup
Create a table with the following data in Excel:
New
Alice Sales 30 5
York
Bob HR 45 10 Chicago
New
Charlie IT 25 3
York
New
Edward HR 35 12
York
Fiona IT 28 6 Chicago
Questions to Solve
Use the COUNTIFS function to answer the following questions:
1. How many employees are in the Sales department and are younger
than 35?
o Hint: Use the conditions Department="Sales" and Age<35.
2. How many employees have more than 5 years of experience and are
in New York?
o Hint: Use the conditions Years of Experience>5 and City="New York".
3. How many employees are in the HR department and are older than
40?
o Hint: Use the conditions Department="HR" and Age>40.
Formulas
Here’s how the formulas would look for each question:
1. =COUNTIFS(B2:B7, "Sales", C2:C7, "<35")
2. =COUNTIFS(D2:D7, ">5", E2:E7, "New York")
3. =COUNTIFS(B2:B7, "HR", C2:C7, ">40")
4. =COUNTIFS(C2:C7, "<30", E2:E7, "Chicago")
5. =COUNTIFS(B2:B7, "IT", D2:D7, ">=3")