Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel: Find # of days employed

Status
Not open for further replies.

krets

Technical User
Dec 29, 2006
214
US
If I have one column that shows an employees hire date, how can I create a second column to calculate the number of days they have been employed based on the current date?

 
Like

=today()-A1

?

Format the cell containing the formula as General.

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
The general formatting is what I was missing. Thanks!
 
glad to help

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
Hi krets:

You could add the TEXT function to John's formula to get the result formatted as TEXT showing the number of days ...
Code:
=TEXT(TODAY()-A1,"0")

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
 
I generally prefer to keep my numbers stored as numbers.

Zip codes, phone numbers, ID numbers, etc. are different because there's no reason to ever do any math with them. But the number of days employed? What if you want an average or something?

krets: IMHO, you should properly format the cell and store the data as a number.

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top