EOMONTH formula returning NAME? error

sysmjp

New Member
Joined
Sep 28, 2007
Messages
12
The formula =EOMONTH(A1,-2)+1 was working in a previous version of my spreadsheet to return the first day of the prior month after the date entered in cell A1. When I do "save as" to update the information, the formula returns the NAME error.

I have the required Analysis Toolpak installed. What else can create this error? The only change was "save as" and renaming the file. I did not change the date in cell A1 yet.

I'm using Excel 2003. Thanks.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I can't think of any other reason than Analysis ToolPak for the NAME error assuming there are no other functions in the formula - ie what you wrote is all that the formula contains.

As a workaround - simply use the DATE function to get your result

=DATE(YEAR(A1),MONTH(A1)-1,1)

This is a safer approach if ever distributing file(s) to other users who may not have the add-in installed and where auto installation of requisite .xla via VBA is not viable.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,897
Messages
6,122,151
Members
449,068
Latest member
shiz11713

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top