I want to convert lets say 1890 Days from today to Years Months, Days!!
Ex: 1890 Days = 6 years, 3 months and 23 days
What is the formula???
Thanks
=TODAY() 1890 and format as a date. for the first part.
Don't know what the Example has to do with the question.
If you don't want the date shown above, then
show what is supplied and what you want preferable with low cell addresses..
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: www.mvps.org/dmcritchie/excel/excel.htm
Search Page: www.mvps.org/dmcritchie/excel/search.htm
quot;Klaudebouquot; gt; wrote in message ...
gt; I want to convert lets say 1890 Days from today to Years Months, Days!!
gt;
gt; Ex: 1890 Days = 6 years, 3 months and 23 days
gt;
gt; What is the formula???
gt; Thanks
How do you get 6 years 3 months and 23 days?
=DATEDIF(TODAY(),TODAY() 1890,quot;yquot;)amp;quot; year(s),
quot;amp;DATEDIF(TODAY(),TODAY() 1890,quot;ymquot;)amp;quot; month(s) and
quot;amp;DATEDIF(TODAY(),TODAY() 1890,quot;mdquot;)amp;quot; day(s)quot;
returns 5 years, 2 months and 2 days
--
Regards,
Peo Sjoblomquot;Klaudebouquot; gt; wrote in message
...
gt; I want to convert lets say 1890 Days from today to Years Months, Days!!
gt;
gt; Ex: 1890 Days = 6 years, 3 months and 23 days
gt;
gt; What is the formula???
gt; Thanks
Try this:
If D is the total number of days:
Years = INT(D/365)
Months = INT(MOD(D,365)/30)
Days = MOD(MOD(D,365),30)
Assuming of course a 365 day year and 30 day month. If you want to put those
together, use CONCATENATE()
HTH
RJK
quot;Klaudebouquot; wrote:
gt; I want to convert lets say 1890 Days from today to Years Months, Days!!
gt;
gt; Ex: 1890 Days = 6 years, 3 months and 23 days
gt;
gt; What is the formula???
gt; Thanks
- Nov 18 Sat 2006 20:10
convert Days to Years, Months, Days
close
全站熱搜
留言列表
發表留言