Q1
You want someone's age in whole years from their date of birth in A2 to today. Which formula is right?
=DATEDIF(A2, TODAY(), "y")
=DATEDIF(TODAY(), A2, "y")- AThe second — the larger date goes first
- BThe first — the earlier date must be the first argument, or DATEDIF returns #NUM!
- CBoth work; DATEDIF sorts the dates for you
- DNeither; age needs YEARFRAC
▶Show answer & explanation
Answer: B. The first — the earlier date must be the first argument, or DATEDIF returns #NUM!
🐱 DATEDIF does not sort its arguments. If the start date is later than the end date it returns #NUM! rather than a negative number, which at least makes the mistake visible. This is the single most common DATEDIF error and it usually appears after someone rearranges columns and updates the formula by eye. Note also that "y" counts complete years, so it matches how people actually state an age — someone one day short of a birthday is still the younger number, which is what you want.