#1   Report Post  
Posted to microsoft.public.excel.misc
Richard
 
Posts: n/a
Default Date formula

If F1 has a hire date, how would you write the formula to show the number of
years, months, and days in F2, something like today()-F1 or now()-F1. I can't
get it to show the total years, months and days.
Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default Date formula


Try datedif function, see here

http://www.cpearson.com/excel/datedif.htm


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=514571

  #3   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Date formula

=DATEDIF(F1,TODAY(),"Y")&" years, "&DATEDIF(F1,TODAY(),"YM")&" months
"&DATEDIF(F1,TODAY(),"MD")&" days"

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Richard" wrote in message
...
If F1 has a hire date, how would you write the formula to show the number

of
years, months, and days in F2, something like today()-F1 or now()-F1. I

can't
get it to show the total years, months and days.
Thanks in advance!



  #4   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default Date formula

Try...

=DATEDIF(F1,TODAY(),"Y")&" Years, "&DATEDIF(F1,TODAY(),"YM")&" Months,
"&DATEDIF(F1,TODAY(),"MD")&" Days"

Hope this helps!

In article ,
"Richard" wrote:

If F1 has a hire date, how would you write the formula to show the number of
years, months, and days in F2, something like today()-F1 or now()-F1. I can't
get it to show the total years, months and days.
Thanks in advance!

  #5   Report Post  
Posted to microsoft.public.excel.misc
Steve Yandl
 
Posts: n/a
Default Date formula

=DATEDIF(F1,NOW(),"y") & " years, " & DATEDIF(F1,NOW(),"ym") & " months, " &
DATEDIF(F1,NOW(),"md") & " days"


"Richard" wrote in message
...
If F1 has a hire date, how would you write the formula to show the number
of
years, months, and days in F2, something like today()-F1 or now()-F1. I
can't
get it to show the total years, months and days.
Thanks in advance!



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
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Trending Formula Results by Date sony654 Excel Worksheet Functions 0 January 2nd 06 02:33 AM
Year-to-date year to date formula Philm Excel Worksheet Functions 1 October 7th 05 02:50 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Need help troubleshooting an array formula XLXP on Win2K KR Excel Worksheet Functions 1 December 13th 04 07:41 PM


All times are GMT +1. The time now is 05:15 PM.

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

About Us

"It's about Microsoft Excel"