Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() I have a date inserted in cell a1 (28/2/2007). In cell A2 I want the date at the end of Feb 2008. I am using the following formula: =DATE(YEAR(A1)+1,MONTH(A1),DAY(A1)) The date returned is 28/2/2008. This should be 29/2/2008 Any ideas how to overcome this?? Cheers Peter -- peter.thompson ------------------------------------------------------------------------ peter.thompson's Profile: http://www.excelforum.com/member.php...o&userid=29686 View this thread: http://www.excelforum.com/showthread...hreadid=499584 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=date(year(a1)+1,month(a1)+1,0)
The zeroeth day of any month is the last day of the previous month. (Same with months and years--the zeroeth month of any year is December of the previous year.) "peter.thompson" wrote: I have a date inserted in cell a1 (28/2/2007). In cell A2 I want the date at the end of Feb 2008. I am using the following formula: =DATE(YEAR(A1)+1,MONTH(A1),DAY(A1)) The date returned is 28/2/2008. This should be 29/2/2008 Any ideas how to overcome this?? Cheers Peter -- peter.thompson ------------------------------------------------------------------------ peter.thompson's Profile: http://www.excelforum.com/member.php...o&userid=29686 View this thread: http://www.excelforum.com/showthread...hreadid=499584 -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Dave Got it, thanks for your help Cheers Peter -- peter.thompson ------------------------------------------------------------------------ peter.thompson's Profile: http://www.excelforum.com/member.php...o&userid=29686 View this thread: http://www.excelforum.com/showthread...hreadid=499584 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Imported Data Date Format Problem | Excel Discussion (Misc queries) | |||
Date problem using VBA | New Users to Excel | |||
How do I put in the date without the year? | Excel Discussion (Misc queries) | |||
dHow do I put in the date without the year? | Excel Discussion (Misc queries) | |||
Date Math Problem | Excel Worksheet Functions |