Conversion Days to Years / Months

philb99

Active Member
Joined
Feb 3, 2014
Messages
389
Office Version
  1. 2010
Platform
  1. Windows
Hi, is there any way to convert Total Days to show Years / Months / days please
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
assumes 31 days a month
=DATEDIF(0,A2,"y")&" Years "&DATEDIF(0,A2,"ym")&" Months "&DATEDIF(0,A2,"md")&" Days"

are you still using excel 2010 version - may be better ways



Book7
ABCD
1removing zeros
2320 Years 1 Months 1 Days1 Months 1 Days
Sheet1
Cell Formulas
RangeFormula
C2C2=DATEDIF(0,A2,"y")&" Years "&DATEDIF(0,A2,"ym")&" Months "&DATEDIF(0,A2,"md")&" Days"
D2D2=IF(DATEDIF(0,A2,"y")<>0,DATEDIF(0,A2,"y")&" Years ","")& IF(DATEDIF(0,A2,"ym")<>0,DATEDIF(0,A2,"ym")&" Months ","")& IF(DATEDIF(0,A2,"md")<>0,DATEDIF(0,A2,"md")&" Days","")
 
Upvote 0
Solution

Forum statistics

Threads
1,215,375
Messages
6,124,591
Members
449,174
Latest member
chandan4057

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top