How do I convert decimal dates into a format that shows the month and day?
I have tried the formulas given on the internet, but they do not work for me, and I can't figure out why.
=DATE(INT(A1),1,1)+MOD(A1,1)*365.25-1 gave 646481.
=DATE(INT(A1), 1, 1)+MOD(A1,1)*(DATE(INT(A1)+1, 1, 1)-DATE(INT(A1), 1, 1)) gave 646482.
=ROUNDDOWN(A1, 0) & " Years" & " " & ROUNDDOWN(365*(A1 - ROUNDDOWN(A1,0)) / 30.33, 0) & " Months" & " " & ROUND((((365*A1 / 30.33) - ROUNDDOWN(365*A1 / 30.33, 0)) * 30.33), 0) & " Days" gave 1770 years 0 months 21 days.
It seems that the first two formulas merely give the serial number. For 1900, the first formula gives 0, and the second formula gives 1. The problem is that they do not translate these serial numbers into dates. Also I'm not sure they work for dates before 1900.
For 1900, the third formula gives 1900 years, 0 months, 5 days.
I have tried the formulas given on the internet, but they do not work for me, and I can't figure out why.
=DATE(INT(A1),1,1)+MOD(A1,1)*365.25-1 gave 646481.
=DATE(INT(A1), 1, 1)+MOD(A1,1)*(DATE(INT(A1)+1, 1, 1)-DATE(INT(A1), 1, 1)) gave 646482.
=ROUNDDOWN(A1, 0) & " Years" & " " & ROUNDDOWN(365*(A1 - ROUNDDOWN(A1,0)) / 30.33, 0) & " Months" & " " & ROUND((((365*A1 / 30.33) - ROUNDDOWN(365*A1 / 30.33, 0)) * 30.33), 0) & " Days" gave 1770 years 0 months 21 days.
It seems that the first two formulas merely give the serial number. For 1900, the first formula gives 0, and the second formula gives 1. The problem is that they do not translate these serial numbers into dates. Also I'm not sure they work for dates before 1900.
For 1900, the third formula gives 1900 years, 0 months, 5 days.