Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Michael Lock
 
Posts: n/a
Default Add decimal years to a date

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?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Add decimal years to a date

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.

"Michael Lock" wrote in message
...
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?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Michael Lock
 
Posts: n/a
Default Add decimal years to a date

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.

"Andy" wrote:

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.

"Michael Lock" wrote in message
...
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?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
 
Posts: n/a
Default Add decimal years to a date

On Fri, 31 Mar 2006 08:02:03 -0800, Michael Lock
wrote:

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?


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
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Michael Lock
 
Posts: n/a
Default Add decimal years to a date

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. ;-)

"Ron Rosenfeld" wrote:

On Fri, 31 Mar 2006 08:02:03 -0800, Michael Lock
wrote:

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?


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



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default Add decimal years to a date

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

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
To create formula to add 3 years and subtract 1 day from a date? rostroncarlyle Excel Worksheet Functions 2 December 8th 05 11:21 PM
I need the difference between two dates expressed as 4 years 3 mo. Dean Excel Discussion (Misc queries) 2 December 1st 05 05:11 AM
How do I calculate if a date is in a certain time frame? Pe66les Excel Worksheet Functions 19 August 27th 05 11:07 PM
search for latest date Sue Excel Worksheet Functions 2 August 2nd 05 11:09 PM
Using formulas to determine date in one cell based on date in anot Gary Excel Worksheet Functions 2 November 22nd 04 08:11 AM


All times are GMT +1. The time now is 02:32 AM.

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"