DATEDIF?The DATEDIF function calculates the difference between two dates. Using "Y" returns the number of full years between the start and end dates. Option C correctly uses the start date first and the unit "Y".
The unit "YM" in DATEDIF returns the number of months after subtracting full years. Option A correctly uses this to get months excluding years.
DATEDIF to get this total days difference?The unit "D" returns the total number of days between two dates. Option A returns days ignoring months and years, which is not total days. Option A reverses dates causing errors or negative results. Option A approximates days but is not exact.
Option B correctly uses DATEDIF units to calculate full years, leftover months, and leftover days. Option B reverses dates causing errors. Option B uses "M" and "D" which count total months and days, not leftover parts. Option B mixes units incorrectly.
=DATEDIF(A1, B1, "Y")?When the start date is after the end date, DATEDIF returns a #NUM! error because it cannot calculate a negative difference.