Solved

Calculate years and months based on hire-date

Posted on 2014-02-25
4
701 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
  • 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 26

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 26

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now