SanjayaGarg
New Member
- Joined
- Nov 10, 2017
- Messages
- 27
- Office Version
- 2013
- Platform
- Windows
Hello ! I want to calculate difference between start date and end date. While doing so using 'datedif' formula, I am getting result as follows :
The result should be 1 year as 30 days equal to 1 month and 12 months equal to 1 year.
Please make any correction if possible.
A | B | C | D |
Start Date | End Date | Result | Formula |
16-04-2021 | 15-04-2022 | 0 Years, 11 Months, 30 Days | IF(A3="","",DATEDIF(A3,B3,"Y")&" Years, "&DATEDIF(A3,B3,"YM")&" Months, "&DATEDIF(A3,B3,"MD")&" Days") |
The result should be 1 year as 30 days equal to 1 month and 12 months equal to 1 year.
Please make any correction if possible.