Solved

Calculate years and months based on hire-date

Posted on 2014-02-25
4
897 Views
Last Modified: 2014-02-25
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?


hire-date-excel-example-formula
0
Comment
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
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Author Comment

by:garryshape
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

by:
MacroShadow earned 500 total points
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

by:MacroShadow
MacroShadow earned 500 total points
ID: 39887502
Using VBA you could have it all in the same cell.
0
 

Author Closing Comment

by:garryshape
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question