A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

dates



 
 
Thread Tools Display Modes
  #1  
Old May 4th, 2010, 12:50 PM posted to microsoft.public.excel.newusers
KRK
external usenet poster
 
Posts: 101
Default dates

hello,

How do I add 1 calendar month to a date, regardless of the number of days in
the month?

Thanks

KK

  #2  
Old May 4th, 2010, 01:01 PM posted to microsoft.public.excel.newusers
John
external usenet poster
 
Posts: 563
Default dates

Hi
Maybe this : =DATE(YEAR(A1),MONTH(A1)+1,DAY(A1))
Change A1 for your needs.
HTH
John
"KRK" wrote in message
...
hello,

How do I add 1 calendar month to a date, regardless of the number of days in
the month?

Thanks

KK


  #3  
Old May 4th, 2010, 03:42 PM posted to microsoft.public.excel.newusers
Joe User[_2_]
external usenet poster
 
Posts: 757
Default dates

"KRK" wrote:
How do I add 1 calendar month to a date, regardless
of the number of days in the month?


Depends on what you want for "one month after Jan 31", for example.

For most purposes, the preferred answer is Feb 28 (or 29 in leap years). In
that case, use EDATE(A1,1). If you get a #NAME error, see the Help page for
EDATE.

If Mar 2 (or 3) is acceptable, use DATE(YEAR(A1),1+MONTH(A1),DAY(A1)).

  #4  
Old May 4th, 2010, 04:10 PM posted to microsoft.public.excel.newusers
Ron Rosenfeld
external usenet poster
 
Posts: 3,719
Default dates

On Tue, 4 May 2010 12:50:44 +0100, "KRK"
wrote:

hello,

How do I add 1 calendar month to a date, regardless of the number of days in
the month?

Thanks

KK


Depends on what you mean.

What is Jan 31 + 1 month? in your specifications?

If the answer is Feb 28, then:

=MIN(DATE(YEAR(A1),MONTH(A1)+1+{1,0},DAY(A1)*{0,1} ))

or

=edate(a1,1)

If the answer is Mar 3, then:

=DATE(YEAR(A1),MONTH(A1)+1,DAY(A1))

--ron
  #5  
Old May 7th, 2010, 01:13 PM posted to microsoft.public.excel.newusers
KRK
external usenet poster
 
Posts: 101
Default dates - Thanks

Hello & thanks, this has worked fine

KK


"KRK" wrote in message
...
hello,

How do I add 1 calendar month to a date, regardless of the number of days
in the month?

Thanks

KK


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:22 PM.


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