Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 328
Default How to adjust a function to reflect the new year change

I have a formula
=DATE(YEAR(B37)+F39,MONTH(B37-1),DAY(B37-1))
This is to calculate yearly contract dates, # of years and start date are
entered.

this works until I enter a date in Jan 2007, it will give me an end date of
12/2008. I neet to do an IF function to tell excel not to change the date if
Jan 07 is used.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default How to adjust a function to reflect the new year change

Lisa,

If your date of 1/15/07 is in A1 the in another cell put:

=DATE(YEAR(A1)+1,MONTH(A1),0)

This will give the year end date of 12/31/07.

CHORDially,
Art Farrell

"Lisa" wrote in message
...
I have a formula
=DATE(YEAR(B37)+F39,MONTH(B37-1),DAY(B37-1))
This is to calculate yearly contract dates, # of years and start date are
entered.

this works until I enter a date in Jan 2007, it will give me an end date

of
12/2008. I neet to do an IF function to tell excel not to change the date

if
Jan 07 is used.




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
How do you change the year but not the month automatically? Autumn Dreams Excel Discussion (Misc queries) 3 May 28th 06 05:41 PM
DAYS360 function for 365 day year Mark at Cascade Excel Worksheet Functions 3 March 15th 06 07:25 PM
Can function in one cell change value or function in another cell? me Excel Worksheet Functions 4 February 27th 06 01:04 PM
years change to current year nwg Excel Worksheet Functions 5 January 1st 06 03:29 PM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM


All times are GMT +1. The time now is 02:45 PM.

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"