Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Adding .45 months to a date

On Wed, 25 Apr 2007 06:52:02 -0700, Trev
wrote:

I have a project estimation worksheet where I am calculating the number of
months remaining, then adding the current date + Months using
=DATE(YEAR(C11),MONTH(C11)+H11,DAY(C11)) where C11 is the current date and
H11 is the number of months expressed at a number. It works fine when the
month field is 1. When the month field is <1 it totally ignores it and the
result ends up being = the start date. Is this "By Design" or a bug?


The DATE function seems to be behaving exactly as documented, so I guess you
would call it "By Design". The arguments for the DATE function are defined as
integers.

Month is a positive or negative integer representing the month of the year
from 1 to 12 (January to December).

If month is greater than 12, month adds that number of months to the first
month in the year specified. For example, DATE(2008,14,2) returns the serial
number representing February 2, 2009.
If month is less than 1, month subtracts that number of months plus 1 from the
first month in the year specified. For example, DATE(2008,-3,2) returns the
serial number representing September 2, 2007.

--ron
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
Adding months to a date miss misty Excel Worksheet Functions 3 April 13th 07 01:59 AM
Adding 6 Months to a Date Excel User Excel Worksheet Functions 8 January 25th 07 12:16 AM
Adding 6 months to any given date hoyt New Users to Excel 7 July 9th 06 11:14 AM
adding months to an inputted date BLW Excel Discussion (Misc queries) 5 June 9th 05 03:26 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 06:56 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"