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

Let me reitterate what I need. I have commitment dates for each year. We
enter start date 1/15/07 and want the end date to come up 12/31/2007, first
the end date came up 12/31/2008, after the last message it comes up 1/1/2007.

"Lisa" wrote:

We're getting there, but I need it from start date Jan ?, 2007 and the end
date to say Dec ?, 2007, so it will calculate a year later. Now it's giving
Dec 2008.

"Dave F" wrote:

=IF(B37=DATE(2007,01,01),B37,[your formula])

This tests if the date in B37 is Jan 1, 2007. If you need to test for ANY
date between Jan 1 2007 AND Jan 31 2007 inclusive, you should change the test
to something like =IF(MONTH(B37)=1,B37,[your formula])

Dave
--
Brevity is the soul of wit.


"Lisa" wrote:

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
change the year in a calendar template to different year George Excel Discussion (Misc queries) 1 July 19th 06 07:34 PM
Change Year Date In A Formula Throughout The Spreadsheet Autumn Dreams Excel Discussion (Misc queries) 3 June 3rd 06 02:12 AM
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
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"