route217
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...
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...
ASKER
Many thanks for the feedback
ASKER
Hi the barman
I am not after the first of the next month but "October 12" as the end result.
I am not after the first of the next month but "October 12" as the end result.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Where above it says =Format it should be =Text the Format is a function of VBA not an Excel formula :)
=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.