Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default DATEDIF function in excel

i have to find out how many years employee has been working on the job. using
current date - hire date/365. result have to be in years? who knows the right
function, so i can get the answers for all employees at one time?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 143
Default DATEDIF function in excel

You are close:
=(current date - hire date)/365.25

Just switch the dates around and wrap them in ()s and you are set. Copy the
formula down to all your records.


--
Regards,

PJ
Please rate this post using the vote buttons if it was helpful.



"Rosa" wrote:

i have to find out how many years employee has been working on the job. using
current date - hire date/365. result have to be in years? who knows the right
function, so i can get the answers for all employees at one time?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default DATEDIF function in excel

and using datedif

=DATEDIF(A1,TODAY(),"y")

and with months

=DATEDIF(A1,TODAY(),"y")&" Years "&DATEDIF(A1,TODAY(),"ym")&" Months"

Mike


"Rosa" wrote:

i have to find out how many years employee has been working on the job. using
current date - hire date/365. result have to be in years? who knows the right
function, so i can get the answers for all employees at one time?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default DATEDIF function in excel

Use DATEDIF(startdate,TODAY(),"y")

Change the last argument as below

m Months
d Days
y Years
ym Months Excluding Years
yd Days Excluding Years
md Days Excluding Years And Months


If this post helps click Yes
---------------
Jacob Skaria


"Rosa" wrote:

i have to find out how many years employee has been working on the job. using
current date - hire date/365. result have to be in years? who knows the right
function, so i can get the answers for all employees at one time?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Datedif function Taryn Excel Discussion (Misc queries) 2 January 30th 09 06:38 PM
DATEDIF FUNCTION JT Excel Worksheet Functions 3 November 29th 06 04:27 PM
Please add reference to the Excel function DATEDIF to your help Ed Excel Discussion (Misc queries) 6 October 24th 06 02:01 AM
The 'DATEDIF' Function is not listed on my Excel program. UOF Excel Worksheet Functions 7 January 5th 05 09:29 AM
Does Excel 2000 have a 'datedif' function to calculate the number. Kaddy Excel Worksheet Functions 7 December 11th 04 08:53 PM


All times are GMT +1. The time now is 06:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"