#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default EOMonth function

Is there an equivalent function to EOMonth in xl2003 or a formula that will
get me the same result?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 376
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,939
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 269
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?



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
FIX FOR =N/A errors from EOMONTH Drew[_5_] Excel Worksheet Functions 0 February 23rd 10 05:15 AM
EOMONTH Formula KRiffe Excel Worksheet Functions 6 January 27th 08 03:29 AM
eomonth John T[_2_] Excel Worksheet Functions 3 March 15th 07 12:51 PM
data validation with EOMONTH function spence Excel Worksheet Functions 1 March 19th 06 12:04 AM
How about adding a quarterly function to Excel like its EOMonth? SDolley Excel Worksheet Functions 1 March 30th 05 06:58 PM


All times are GMT +1. The time now is 02:18 PM.

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"