Date formula

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
=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)
 
Try...

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

Hope this helps!
 
=DATEDIF(F1,NOW(),"y") & " years, " & DATEDIF(F1,NOW(),"ym") & " months, " &
DATEDIF(F1,NOW(),"md") & " days"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top