# How to Use DATEDIF in Excel

- URL: https://betteranalyst.com/excel/datedif-function
- Author: Better Analyst

### Complete years

```excel
=DATEDIF(B2,C2,"Y")
```

Returns complete years between the dates.
