dates

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

TrustPilot

starstarstarstarstar Excellent

  • Home
  • Courses
  • Promotions
  • Schedule
  • Formats
  • Our Clients

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Dates

Dates

resolvedResolved · Low Priority · Version 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:

Line breaks in a cell

You can control the line breaks for multiple-line headings or labels in your Microsoft Excel worksheet, just like you do in Microsoft Word. Here's how to do it.

Click the cell where you want the label or heading to appear.
Type the first line of information.
Press ALT+ENTER.

View all Excel hints and tips


Server loaded in 0.08 secs.