Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# Calculate years and months based on hire-date

Posted on 2014-02-25
Medium Priority
1,185 Views
I'm trying to figure out how in this cell I can calculate, from the date specified, the number of years + months from that day to "today's date" (the date I'm opening the spreadsheet on).

I've highlighted here in the cell where it'd be ideal to show.

Is this possible or would I have to create another column and display this based on a calculation and change the formatting of the cell/column?

0
Question by:garryshape
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 2
• 2

Author Comment

ID: 39887480
I cam across this.
Any way it can be used within the same cell? Or would it have to be another cell referencing A2?

=DATEDIF(A2,TODAY(),"y")&" y "&DATEDIF(A2,TODAY(),"ym")&" m"
0

LVL 27

Accepted Solution

ID: 39887498
If the value isn't hard coded (in your example it's in A2) it must be in a separate cell.
0

LVL 27

Assisted Solution

ID: 39887502
Using VBA you could have it all in the same cell.
0

Author Closing Comment

ID: 39887507
Ok, thanks for that. Just wasn't sure. I'm clueless when it comes to Excel, but I seem to do better finding answers then some people. heh.

Thanks.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
###### Suggested Courses
Course of the Month11 days, 23 hours left to enroll