Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Adding 10 years to a date

I asked a question earlier with two parts. I figured out the date format. But
I am still having trouble adding 10 years to the date and having a column
show if it is within 10 years or outside 10 years from current date.

Eff. Date 10yr as 5/09
08/16/1997 ???? outside 10y
12/10/2001 ???? within 10y
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Adding 10 years to a date


Try:


Code:
--------------------
=DATE(YEAR(A1)+10,MONTH(A1),DAY(A1))
--------------------


and


Code:
--------------------
=IF(AND(B1<=DATE(YEAR(TODAY())+10,MONTH(TODAY()),D AY(TODAY())),B1=DATE(YEAR(TODAY())-10,MONTH(TODAY()),DAY(TODAY()))),"within","outside ")
--------------------


--
NBVC

Where there is a will there are many ways.
'The Code Cage' (http;//www.thecodecage.com)
------------------------------------------------------------------------
NBVC's Profile: http://www.thecodecage.com/forumz/member.php?userid=74
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=109811

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Adding 10 years to a date

Your formula in B2 would be
=DATE(YEAR(A2)+10,MONTH(A2),DAY(A2))
to add 10 years

The formula in C2 would be
=IF(AND(NOW()=A2, NOW()<=B2), "Within 10", "Not Within 10")
--
HTH...

Jim Thomlinson


"Jason K" wrote:

I asked a question earlier with two parts. I figured out the date format. But
I am still having trouble adding 10 years to the date and having a column
show if it is within 10 years or outside 10 years from current date.

Eff. Date 10yr as 5/09
08/16/1997 ???? outside 10y
12/10/2001 ???? within 10y

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 120
Default Adding 10 years to a date

Hi
Try,
place this formula in B2
=DATE(YEAR(A2)+LEFT($B$1,2),MONTH(A2),DAY(A2))

and place this formula in C2
=IF(B2$C$1,"outside 10 yrs,","within10yrs")

make sure that your date in C1 is real date, otherwise its won't works
To format it to real date, right click Format Cells select date
choose mmm-yy
--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"Jason K" wrote:

I asked a question earlier with two parts. I figured out the date format. But
I am still having trouble adding 10 years to the date and having a column
show if it is within 10 years or outside 10 years from current date.

Eff. Date 10yr as 5/09
08/16/1997 ???? outside 10y
12/10/2001 ???? within 10y

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
need held for auto date calculation for adding years and substract srinivas New Users to Excel 1 October 3rd 08 06:54 PM
Adding 40 years to date Jaydeebug Excel Discussion (Misc queries) 3 August 9th 08 05:00 AM
Adding years to a date sumitk Excel Discussion (Misc queries) 4 May 18th 06 09:12 PM
Adding values for selected years OSDavidL Excel Worksheet Functions 6 February 9th 06 09:55 AM
Excel Adding years or months to a date Joan Excel Discussion (Misc queries) 2 April 25th 05 08:09 PM


All times are GMT +1. The time now is 04:42 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"