I have two dates subtracted which gives yields 867
How to convert to ? Yrs ? Mths ? Days
Excel Workbook | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | 5/17/2015 | 9/30/2017 | 02 years 05 months 16 days | ||
Sheet |
Another option would be to subtract the dates and use custom formatting.
Format as
[TABLE="width: 273"]
<colgroup><col width="273"></colgroup>[TR]
[TD="width: 273"]yy "years" mm "months" dd "days"[/TD]
[/TR]
[/TABLE]
Excel Workbook
A B C 1 5/17/2015 9/30/2017 02 years 05 months 16 days Sheet
Which, of course, means you can do it easily by formula as well if desired...Another option would be to subtract the dates and use custom formatting.
Format as
[TABLE="width: 273"]
<tbody>[TR]
[TD="width: 273"]yy "years" mm "months" dd "days"[/TD]
[/TR]
</tbody>[/TABLE]
Another option would be to subtract the dates and use custom formatting.
Format as
[TABLE="width: 273"]
<tbody>[TR]
[TD="width: 273"]yy "years" mm "months" dd "days"[/TD]
[/TR]
</tbody>[/TABLE]
A B C
<colgroup><col style="width:30px; "><col style="width:76px;"><col style="width:76px;"><col style="width:203px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]1[/TD]
[TD="align: right"]5/17/2015[/TD]
[TD="align: right"]9/30/2017[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=ffff00]#ffff00[/URL] , align: right"]02 years 05 months 16 days[/TD]
</tbody>
Spreadsheet Formulas
Cell Formula C1 =B1-A1
<tbody>
</tbody>
<tbody>
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
This does not return the correct result because it returns the date (year/month/day) calculated from 1 Jan 1900 plus 867 days.
It returns 2 (year 1902,), 5 (May), 16 (day).
The correct answer should be 2 years, 4 months, 13 days