Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

STL - Formerly Best Training Solutions Through Learning
TrustPilot
Excellent
Request Callback We will call you back
0207 987 3777 Call for assistance
Your Basket Basket is empty
dates

ResolvedVersion 2007

Alex has attended:
Excel Intermediate course
Excel Advanced course

Dates

How can i convert days into year/months/days?
I.e 2834 days =
x Years
x Months
x Days

RE: Dates

Hello Alex

Thank you for your question and welcome to the forum.

You can use the DATEDIF function as part of a text string to take a number of days and display X years Y months Z days.

If the number of days is in cell A1, enter the following to make the conversion in another cell:
=DATEDIF(0,A1,"y")&" years "&DATEDIF(0,A1,"ym")& " months "&DATEDIF(0,A1,"md")&" days"

The spaces around years and months have been put in purposefully so that the result will display with spaces in these positions in the result you will get. The & symbols create the string.

Kind regards
Amanda

Fri 11 Sep 2009: Automatically marked as resolved.

Excel tip:

Hiding and unhiding rows using the keyboard

CTRL + 9 hides your columns and CTRL + SHIFT + ( unhides them although you would need to highlight the row letters either side as per normal

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.