How do I add decimal years to a date. I know that I have 9.79 years untill
full retirement. How do I add that to today's date to find out what my
retirement date is?
Hi
Try multiplying your 9.79 by 365 - as 1 in Excel is one day. You can then
add this to your date and format the result as a date.
Andy.
quot;Michael Lockquot; gt; wrote in message
...
gt; How do I add decimal years to a date. I know that I have 9.79 years
gt; untill
gt; full retirement. How do I add that to today's date to find out what my
gt; retirement date is?
Yea. I'd thought of that. The only drawback there is it doesn't deal with
leap years. I know that there should be two in the next 9.79 years (so I
could subtract 2 from the total number of days I calculate) but I was hoping
that there might be some method which automatically accounted for that.
quot;Andyquot; wrote:
gt; Hi
gt;
gt; Try multiplying your 9.79 by 365 - as 1 in Excel is one day. You can then
gt; add this to your date and format the result as a date.
gt;
gt; Andy.
gt;
gt; quot;Michael Lockquot; gt; wrote in message
gt; ...
gt; gt; How do I add decimal years to a date. I know that I have 9.79 years
gt; gt; untill
gt; gt; full retirement. How do I add that to today's date to find out what my
gt; gt; retirement date is?
gt;
gt;
gt;
On Fri, 31 Mar 2006 08:02:03 -0800, Michael Lock
gt; wrote:
gt;How do I add decimal years to a date. I know that I have 9.79 years untill
gt;full retirement. How do I add that to today's date to find out what my
gt;retirement date is?
The problem with using decimal years is that both years and months have
different numbers of days. So it's going to depend on what sort of assumptions
you want to make.
You could assume, for example, that the average year has 365.25 days and use a
formula like:
=A1 365.25*B1
Where A1 is your date; and B1 is your decimal years.
You could assume the last month has 30 days and use the formula:
=DATE(YEAR(A1) INT(B1),MONTH(A1) MOD(
B1,1)*12,DAY(A1) MOD(MOD(B1,1)*12,1)*30)
or you could assume an average month has 365/12 days and use:
=DATE(YEAR(A1) INT(B1),MONTH(A1) MOD(
B1,1)*12,DAY(A1) MOD(MOD(B1,1)*12,1)*365/12)
There might be a one or two day difference between the two formulas.
Or you could find out how your company calculates it, and see if things are
close.--ron
Thanks Ron. I think this is as close as I'm going to get. I just thought it
should be easier than it appears to be. ;-)
quot;Ron Rosenfeldquot; wrote:
gt; On Fri, 31 Mar 2006 08:02:03 -0800, Michael Lock
gt; gt; wrote:
gt;
gt; gt;How do I add decimal years to a date. I know that I have 9.79 years untill
gt; gt;full retirement. How do I add that to today's date to find out what my
gt; gt;retirement date is?
gt;
gt; The problem with using decimal years is that both years and months have
gt; different numbers of days. So it's going to depend on what sort of assumptions
gt; you want to make.
gt;
gt; You could assume, for example, that the average year has 365.25 days and use a
gt; formula like:
gt;
gt; =A1 365.25*B1
gt;
gt; Where A1 is your date; and B1 is your decimal years.
gt;
gt; You could assume the last month has 30 days and use the formula:
gt;
gt; =DATE(YEAR(A1) INT(B1),MONTH(A1) MOD(
gt; B1,1)*12,DAY(A1) MOD(MOD(B1,1)*12,1)*30)
gt;
gt; or you could assume an average month has 365/12 days and use:
gt;
gt; =DATE(YEAR(A1) INT(B1),MONTH(A1) MOD(
gt; B1,1)*12,DAY(A1) MOD(MOD(B1,1)*12,1)*365/12)
gt;
gt; There might be a one or two day difference between the two formulas.
gt;
gt; Or you could find out how your company calculates it, and see if things are
gt; close.
gt;
gt;
gt; --ron
gt;
How do you know that it is 9.79 years to retirement? How did you (or
somebody else) arrive at this figure? Presumably if you knew how this
was calculated then you could apply the appropriate formula within
Excel.
Pete
- Jul 16 Mon 2007 20:38
Add decimal years to a date
close
全站熱搜
留言列表
發表留言