Introduction To The DATEDIF Function
=DATEDIF(Date1, Date2, Interval)
=DATEDIF(A1,B1,"y")&" years "&DATEDIF(A1,B1,"ym")&" months "&DATEDIF(A1,B1,"md")
&" days"
12 years 8 months 14 days
Interval | Meaning | Description |
m | Months | Complete calendar months between the dates. |
d | Days | Number of days between the dates. |
y | Years | Complete calendar years between the dates. |
ym | Months Excluding Years | Complete calendar months between the dates as if they were of the same year. |
yd | Days Excluding Years | Complete calendar days between the dates as if they were of the same year. |
md | Days Excluding Years And Months | Complete calendar days between the dates as if they were of the same month and same year. |
=DATEDIF(A1,B1,"y")&" years "&DATEDIF(A1,B1,"ym")&" months "&DATEDIF(A1,B1,"md")
&" days"
12 years 8 months 14 days
Comments
Post a Comment
jeetexceltips@gmail.com