#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default edate 1 March!!

On Wed, 1 Aug 2012 02:23:48 +0000, Yangas wrote:


ok
I'm trying to get column a to display todays day, but the month to
increase by one all the way down. I need a formula to do this (in
xl2003) recognising days with 31 days and February.

=IF((MONTH(A226)+1)=2,DATE(YEAR(A226),MONTH(A226) +1,DAY(IF(DAY(TODAY())28,28,TODAY()))),DATE(YEAR( A226),MONTH(A226)+1,DAY(TODAY())))
doesn't seem to work on the 31st of each month i get #N/A
nor
=IF(EOMONTH(A228,0),EOMONTH(A228,1),EDATE(A228,1) ) this seems to return
-1day

thanks in advance



The key is to make everything relative to the first row in which you have your initial date; and not to the previous row.
For example:

=edate($A$1,ROWS($1:1))

or, if you do not want to have the ATP installed in your Excel 2003:

=MIN(DATE(YEAR($A$1),MONTH($A$1)+ROWS($1:1)+{1,0}, DAY($A$1)*{0,1}))

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
2008 Australian Excel Conference - March 12 - March 14, Sydney, Australia Damon Longworth Excel Worksheet Functions 0 February 26th 08 02:51 AM
2008 Australian Excel Conference - March 12 - March 14, Sydney, Australia Damon Longworth Excel Worksheet Functions 0 February 4th 08 04:17 AM
2008 Australian Excel Conference - March 12 - March 14, Sydney, Australia Damon Longworth Excel Programming 0 February 4th 08 04:17 AM
2008 Australian Excel Conference - March 12 - March 14, Sydney, Australia Damon Longworth Excel Programming 0 January 11th 08 12:47 AM
2008 Australian Excel Conference - March 12 - March 14, Sydney, Australia Damon Longworth Excel Programming 0 November 21st 07 03:22 AM


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