Management & CommerceHardBusiness analyst · KPO · MBA placement pattern

A1 holds an employee's joining date, 15-Mar-2024, and B1 holds 10-Nov-2026. What does =DATEDIF(A1, B1, "Y") & " yr " & DATEDIF(A1, B1, "YM") & " mo" return?

  1. A. 2 yr 8 mo
  2. B. 2 yr 31 mo
  3. C. 2 yr 7 mo
  4. D. 3 yr 7 mo

Correct answer: C. 2 yr 7 mo

"Y" counts complete years: 15-Mar-2024 to 15-Mar-2026 = 2. "YM" counts complete months left over after those years: to 15-Oct-2026 is 7; 15-Nov is not yet reached, so 7. Using "M" (total complete months, 31) gives "2 yr 31 mo"; counting the partial month gives 8.

More Operations, Supply Chain & Business Analytics questions

Exams that ask this topic