#1   Report Post  
Junior Member
 
Posts: 2
Angry edate 1 March!!

Hi I'm using =edate(a1,1) a1 being =date(year(x), month(x),day(today()) then =edate(a2,1) then =edate(a3,1) etc
and I get problems with any day after 28 - thanks Feb!!

Is there anyway to get this displaying correctly for days such as 31st of a month?
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by Yangas View Post
Hi I'm using =edate(a1,1) a1 being =date(year(x), month(x),day(today()) then =edate(a2,1) then =edate(a3,1) etc
and I get problems with any day after 28 - thanks Feb!!

Is there anyway to get this displaying correctly for days such as 31st of a month?
What is it you're actually trying to show?

Which version of Excel are you using?
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default edate 1 March!!

On Tue, 31 Jul 2012 06:51:12 +0000, Yangas wrote:


Hi I'm using =edate(a1,1) a1 being =date(year(x), month(x),day(today())
then =edate(a2,1) then =edate(a3,1) etc
and I get problems with any day after 28 - thanks Feb!!

Is there anyway to get this displaying correctly for days such as 31st
of a month?


What problem are you having?

Please post some dates that are producing a "problem", the results you see, and the results you would like.
EDATE is designed so as to not go past the last day of the month.
  #4   Report Post  
Junior Member
 
Posts: 2
Default

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(A 226),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


Quote:
Originally Posted by Ron Rosenfeld[_2_] View Post
On Tue, 31 Jul 2012 06:51:12 +0000, Yangas wrote:


Hi I'm using =edate(a1,1) a1 being =date(year(x), month(x),day(today())
then =edate(a2,1) then =edate(a3,1) etc
and I get problems with any day after 28 - thanks Feb!!

Is there anyway to get this displaying correctly for days such as 31st
of a month?


What problem are you having?

Please post some dates that are producing a "problem", the results you see, and the results you would like.
EDATE is designed so as to not go past the last day of the month.
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default edate 1 March!!

Try this:

=EDATE(A$1,ROWS(A$1:A1))


  #6   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 04:00 PM.

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"