Link to home
Start Free TrialLog in
Avatar of route217
route217Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Eomonth formula error

Hi Experts

I am getting a #Name error when I insert the following
Formula in cell B2 =EOMonth(A2,0)+1 when a1 say sep-12
I want B2 to say October 12...
Avatar of Steve
Steve
Flag of United Kingdom of Great Britain and Northern Ireland image

the second value after the column will shift the number of months (not using +1)
=EOMonth(A2,1) though your formula should still return the first of the next month.
And your error is likely due to the value in A2 being text, not a date.
try typing 01/09/2012 in celss A2 to test if this is the case.
Avatar of route217

ASKER

Many thanks for the feedback
Hi the barman

I am not after the first of the next month but "October 12" as the end result.
ASKER CERTIFIED SOLUTION
Avatar of Steve
Steve
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Where above it says =Format it should be =Text the Format is a function of VBA not an Excel formula :)