Basic Excel Functions

How To Calculate Year, Month and Day In A Given Number

Let me show you how to convert the number of days to year/month/day in the prescribed format “1 year 4 months 25days” in Excel.

Convert number of Days to year/month/day format

For this, we need to use the DATEDIF function.

Syntax for DATEDIF Function:

DATEDIF(start_date,end_date,unit)

First of all select a blank cell you where we want the output of the conversion.

Type the formula as shown below:

=DATEDIF(0,A2,"y")&" years " &DATEDIF(0,A2,"ym")&" months "&DATEDIF(0,A2,"md")&" days"

Here A2 is the cell containing number of days.

See the image below:

Press Enter and excel will generate the result.

Just double click the fill handle and it will automatically copy the same formula for the range. And then you will see all numbers are converted to year/month/day.

See image below:

Shabbir Bhimani

I have worked in Excel and like to share functional excel templates at ExcelDataPro.

Share
Published by
Shabbir Bhimani

Recent Posts

Download UK VAT Taxable Turnover Calculator Excel Template

To simplify the process, we have created a simple and easy UK VAT Taxable Turnover…

4 years ago

Step By Step Guide TO UK VAT Registration Process

Every business has to register for VAT with HM Revenue and Customs if their VAT…

4 years ago

Download UK VAT Dual Currency Invoice Excel Template

We have created the UK VAT Dual Currency Invoice excel template with predefined formulas that…

4 years ago

Download UK VAT Purchase Register Excel Template

We have created a simple and easy UK VAT Purchase Register Excel Template with predefined…

4 years ago

Download UK VAT Sales Register Excel Template

We have created a simple and easy UK VAT Sales Register Excel Template with predefined…

4 years ago

Download UK VAT Progress Billing Invoice Excel Template

We have created a ready to use UK VAT Progress Billing Invoice template in excel…

4 years ago