IdrisAlMalki
New Member
- Joined
- Aug 28, 2021
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
Hi everyone,
I used DATEDIF function to calculate the period between two dates, but it not showing accurate results.
Example:
someone hire on 01-Oct-2020 and his contract end on 30-Sep-2021, which is one full year, the DATEDIF function showing 0 year and 11 months and 29 days which is not accurate
A1: 01-Oct-2020
A2: 30-Sep-2021
A4: =DATEDIF(A1,A2,"Y")
A5: =DATEDIF(A1,A2,"YM")
A6:=DATEDIF(A1,A2,"MD")
I also used YEARFRAC Function, it showed me 0.99726 instead of 1 year.
A8:=YEARFRAC(A1,A2,1) ---- > 0.997260273972603
A9:=YEARFRAC(A1,A2,0) ---- > 0.997222222
can anyone tell me a formula where it showing the result is 1 year and 0 month and 0 day
thank you
I used DATEDIF function to calculate the period between two dates, but it not showing accurate results.
Example:
someone hire on 01-Oct-2020 and his contract end on 30-Sep-2021, which is one full year, the DATEDIF function showing 0 year and 11 months and 29 days which is not accurate
A1: 01-Oct-2020
A2: 30-Sep-2021
A4: =DATEDIF(A1,A2,"Y")
A5: =DATEDIF(A1,A2,"YM")
A6:=DATEDIF(A1,A2,"MD")
I also used YEARFRAC Function, it showed me 0.99726 instead of 1 year.
A8:=YEARFRAC(A1,A2,1) ---- > 0.997260273972603
A9:=YEARFRAC(A1,A2,0) ---- > 0.997222222
can anyone tell me a formula where it showing the result is 1 year and 0 month and 0 day
thank you