# Displaying a Number as Years and Months

Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Displaying a Number as Years and Months.

Robert has a formula that determines the payback period for certain investments. For instance, with \$20,000 investment in energy-savings equipment and an annual energy savings of \$3000, the simplistic payback period to recoup the investment is 6.6667 years. Robert wonders how he can make this payback period (6.6667) show as years and months instead of as a decimal number.

This can be done by simply multiplying the portion of the answer at the right of the decimal point by 12, which results in a number of months. Here is one way to get the desired result, assuming that the payback result is in cell A1:

```=INT(A1) & " years / " & INT((A1-INT(A1))*12) & " months"
```

With the value 6.6667 in cell A1, the formula would return "6 years / 8 months".

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (6960) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Displaying a Number as Years and Months.

Related Tips:

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

 *Name: Email: Notify me about new comments ONLY FOR THIS TIP Notify me about new comments ANYWHERE ON THIS SITE Hide my email address *Text: *What is 5+3 (To prevent automated submissions and spam.)

Carlos    26 Oct 2016, 08:20
Thank you very much :) Spared me some time from having to come with the solution myself.
efren    29 Sep 2016, 09:04
Thank you for your tips, as compared to other sites yours are more concise and clear and easy as well.
Wouter    17 Dec 2015, 04:02
Excellent tip to display a period of time in an easily readable format. Thanks!
Juan    23 Feb 2013, 12:09
Very interesting tip to convert decimal to meaningful format number

# Our Company

Sharon Parq Associates, Inc.

# Our Sites

Tips.Net

Beauty and Style

Cars

Cleaning

Cooking

ExcelTips (Excel 97–2003)

ExcelTips (Excel 2007–2016)

Gardening

Health

Home Improvement

Money and Finances

Organizing

Pests and Bugs

Pets and Animals

WindowsTips (Microsoft Windows)

WordTips (Word 97–2003)

WordTips (Word 2007–2016)

Excel Products

Word Products

# Our Authors

Author Index

Write for Tips.Net