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 » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

EOMonth function



 
 
Thread Tools Display Modes
  #1  
Old March 22nd, 2010, 03:58 PM posted to microsoft.public.excel.worksheet.functions
Ayo
external usenet poster
 
Posts: 525
Default EOMonth function

Is there an equivalent function to EOMonth in xl2003 or a formula that will
get me the same result?
  #2  
Old March 22nd, 2010, 04:08 PM posted to microsoft.public.excel.worksheet.functions
Roger Govier[_8_]
external usenet poster
 
Posts: 338
Default EOMonth function

Hi

Where it would have been
=EOMONTH(start_date,months)
use
=DATE(YEAR(start_date),MONTH(start_date)+months+1, 0)
--
Regards
Roger Govier

Ayo wrote:
Is there an equivalent function to EOMonth in xl2003 or a formula that will
get me the same result?

  #3  
Old March 22nd, 2010, 04:17 PM posted to microsoft.public.excel.worksheet.functions
Jim Thomlinson
external usenet poster
 
Posts: 2,641
Default EOMonth function

EOMonth requires the analysis toolpak to be added in which you can do in
2003. That being said you can accomplish the same thing similar to this...

With a Date in A1 and the number of months to increment in B1 your EOMonth
would look like this:
=EOMONTH(A1, B1)
Which can be done like this
=DATE(YEAR(A1), MONTH(A1) + B1 + 1, 0)
which does not require the analysis toolpak and will work in all version of
XL.
--
HTH...

Jim Thomlinson


"Ayo" wrote:

Is there an equivalent function to EOMonth in xl2003 or a formula that will
get me the same result?

  #4  
Old March 22nd, 2010, 04:17 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default EOMonth function

Hi,

If you load the analysis toolpak you have EOMONTH in e2003 but here's an
alternative non ATP method. Chane the 1 after the month to change the month

=DATE(YEAR(A1),MONTH(A1)+1,0)
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Ayo" wrote:

Is there an equivalent function to EOMonth in xl2003 or a formula that will
get me the same result?

  #5  
Old March 22nd, 2010, 04:18 PM posted to microsoft.public.excel.worksheet.functions
Paul C
external usenet poster
 
Posts: 202
Default EOMonth function

lNot a direct function like EOMonth but

=Date(Year(A1),Month(A1)+1,) works

When you leave off the day from the inputs Excel picks the last day of the
prior month, so when you use Month(A1)+1 you get the last day of the current
month.

Even works for leap years 2/15/2004 in A1 yields 2/29/2004.

Kind of an odd quirk, like it is picking the 0th day of the month. Not sure
if this was intentional on the programmers part, but it works.
--
If this helps, please remember to click yes.


"Ayo" wrote:

Is there an equivalent function to EOMonth in xl2003 or a formula that will
get me the same result?

 




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 05:54 AM.


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