Exercises
/
Dates and time
/

Date differences: DATEDIF, NETWORKDAYS, WORKDAY

Date differences: DATEDIF, NETWORKDAYS, WORKDAY

Age and length of service, project workdays, deadlines that skip holidays, late payments and leave eligibility.

  1. In cell D2, use DATEDIF to find Jasur’s age in full years on the reporting date in H2 (01.06.2025). Jasur was born on 03.06.2002 (37410).
  2. Probation lasts 3 months. In cell E2, find how many full months Jasur has worked from his hire date (10.01.2025) to the reporting date.
  3. HR needs length of service in the form “3 yr 8 mo”. In cell F3, write Aziz’s length of service (from 15.09.2021 to the reporting date) in exactly that form.
  4. In cell D2, use DAYS to find how many calendar days there are between the project start (28.04.2025) and end (16.05.2025).
  5. In cell E2, use NETWORKDAYS to find how many working days the project has. Take the holidays in column G (09.05, 01.09, 01.10) into account.
  6. The contract must be ready within 10 working days starting 28.04.2025. In cell D2, use WORKDAY to find the due date (skipping weekends and the holidays in column F).
  7. In cell D2, calculate how many days late the payment was. If it was paid early, show 0 rather than a negative number. Copied down, the formula must give 5 for HF-002.
  8. Company rule: annual leave is allowed after 6 full months of work. In cell C2, decide whether Sardor (hired 03.12.2024) is eligible on the date in E2: “Yes” or “No”.