ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   difference two date (https://www.excelbanter.com/excel-discussion-misc-queries/45095-difference-two-date.html)

RKS

difference two date
 
Anyone pl help me. How calculate difference between two date in the
year,month & date. I want to difference year, month & date ( all are
calculate).

Ex.
a1 = {01/12/1950}
b1={01/11/1960}

result we want b1-a1 = 9 year 1 month 10 days. (These format)

Pl Help me.


KL

=DATEDIF(A1,B1,"Y")&" years "&DATEDIF(A1,B1,"Ym")&" months
"&DATEDIF(A1,B1,"Md")&" days"

Regards,
KL


"RKS" wrote in message
...
Anyone pl help me. How calculate difference between two date in the
year,month & date. I want to difference year, month & date ( all are
calculate).

Ex.
a1 = {01/12/1950}
b1={01/11/1960}

result we want b1-a1 = 9 year 1 month 10 days. (These format)

Pl Help me.





All times are GMT +1. The time now is 11:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com