The formulas that make HR data analysis faster — from headcount to leave tracking to payroll.
=DATEDIF(start_date, TODAY(), "Y")
-- Returns the number of complete years since the start date
-- E.g. =DATEDIF(B2, TODAY(), "Y") for employee in B2=COUNTIF(department_column, "Sales")
-- Count employees in a specific department
=COUNTIFS(department_column, "Sales", status_column, "Active")
-- Count active employees in Sales=AVERAGEIF(grade_column, "Grade 3", salary_column)
-- Average salary for employees at Grade 3=annual_entitlement - SUMIF(employee_id_column, this_employee_id, days_taken_column)
-- Total entitlement minus days already takenStore all employee data in a single Excel Table with one row per employee. Use VLOOKUP or XLOOKUP to pull employee data into separate calculation sheets. Use pivot tables for headcount reports by department, grade, or location.
For salary data in shared files: Review → Protect Sheet → uncheck the specific columns with sensitive data. Only people with the password can edit those cells.
ExcelPro has 880+ hands-on exercises across 9 tracks — type real formulas, get instant feedback.
Start practising free →