Microsoft Excel shows a "could not find function" style error when it cannot match the name you typed to any function it knows about. The usual cause is a typo, a missing add-in, a language-region mismatch in the function name, a hidden or missing Analysis ToolPak, or the formula living in an older file format that does not support it. Excel does not run a background search for "close enough" names, so one wrong letter, an extra space, or a function that only exists in a newer version produces the error instead of a result. The exact wording differs by version: you may see #NAME?, a message that says the function is not valid, or a dialog stating that the name could not be found.
What the error is actually telling you
When you type = followed by a name, Excel checks it against three lists: the built-in worksheet functions, functions installed through add-ins, and names you have defined yourself. If the name is on none of those lists, Excel treats it as an undefined name and returns an error. The blank cell or error appears immediately in newer versions because formula syntax is checked as you type; older workbooks may only flag the problem when the formula is calculated or when the file is opened on another machine.
Excel functions are also version-specific. A workbook built with a function introduced in a later release opens on an earlier release as an error, because the earlier release has no such function in its library. That is a compatibility limit, not a corruption problem, and no setting makes an older Excel understand a function that was added after it was released.
The common causes, in order of likelihood
Work through these before anything complicated, because the overwhelming majority of cases sit in the first two items.
- Misspelled name:
=VLLOOKUPor=SUMMcannot resolve. Function names have no spaces, so=SUM RANGEis also invalid. - Wrong separator or punctuation: a comma where your locale expects a semicolon, or a typographic quote instead of a straight one, can break the parse.
- Localized function name: many language versions of Excel require the translated name, such as German
SUMMErather thanSUM, or accept only the English one, depending on the setting. - Function needs an add-in: some functions arrive only when an add-in such as the Analysis ToolPak is enabled.
- Newer function on an older Excel: dynamic array and newer lookup functions are not present in older permanent versions.
- Custom function in a workbook without its macro: user-defined functions live in VBA and vanish if macros are disabled or the add-in carrying them is not loaded.
- File format limit: older binary formats do not carry all modern features, and some functions cannot be saved there.
- Stray character before the equals sign: an apostrophe makes Excel treat the whole line as text, and a leading space breaks the formula.
Fixing a simple name error
- Click the cell and look at the formula in the formula bar, not just the cell, so you can see hidden characters.
- Delete any apostrophe or space before the
=sign. - Retype the function name in lowercase. If Excel accepts it, the name is capitalised automatically; if it stays lowercase after you press Enter, the name is not recognised.
- Use the formula AutoComplete list that appears as you type, and pick the name from it rather than typing the rest by hand.
- Press Enter and check the result.
Typing in lowercase is the fastest diagnostic available. A valid function name that Excel knows turns into uppercase when the formula is committed; an invalid one remains as typed. That single trick separates a spelling problem from a missing-function problem in about two seconds.
When the function exists but will not resolve
If the name is correct and still fails, the function is probably not installed in your copy of Excel. Two situations account for most of these.
The first is add-in functions. Open the add-ins manager through the Excel options and check whether the toolpak-style statistical and engineering add-ins are listed and enabled. Enabling one adds its functions to the library immediately, and any formula that was failing resolves on the next recalculation. Labels differ slightly between Excel versions, editions and platforms, so if you cannot find the exact wording, look for the add-ins section in the options dialog and enable the statistical or analysis entries there.
The second is user-defined functions stored in VBA. A workbook that calls a custom function works only where that code is present and macros are allowed to run. If you open the file on another computer, or the macro security setting blocks code, the function name becomes unknown and the error returns. The fix is to keep the function in the same workbook or in a loaded add-in, and to use a trusted location rather than lowering macro security globally.
Version, platform and file format traps
Several things that look like errors are really compatibility boundaries.
- Older Excel, newer function: the function simply does not exist there. Rewrite the formula with older equivalents or open the file in a current version.
- Excel for the web: it supports a large but not complete set of functions. A workbook that works on the desktop can flag a function in the browser version.
- Older file formats: saving to an older binary format can strip or reject features, and formulas using them may not round-trip cleanly.
- Mismatched locales: a file created with English function names opened in a translated version may need the localized names or the English-name setting adjusted.
- Copied from a website or document: pasted formulas often carry non-breaking spaces or curly quotes that look identical on screen but are invalid syntax.
A reliable test is to build the same formula by hand in a brand-new blank workbook using only AutoComplete suggestions. If the new workbook works and the old one does not, the problem is in the file, its format, or its macro content rather than in Excel itself.
If that did not work
Repair the file before assuming the installation is broken. Opening and saving a copy, or using the built-in repair option when opening a damaged workbook, clears many odd formula leftovers. Confirm the workbook is not in a protected view or read-only mode, because some features behave differently there. Check that the calculation setting is not stuck on manual, which can hide updated results and make a formula look permanently broken. If only one machine shows the error, compare the Excel version and the enabled add-ins on both machines; if every machine shows it, the formula or file is the common factor.
Preventing the problem next time
- Pick function names from the AutoComplete list or the insert-function dialog instead of typing them freehand.
- Paste formulas as plain text first, then retype the leading
=, to strip hidden formatting characters. - Keep shared workbooks in the modern XML-based format so functions and features survive saving.
- Document any custom VBA functions in the workbook itself so other users know they need macros enabled.
- When sharing with people on older versions or the web app, prefer widely supported functions and test the file there before sending it.
Frequently Asked Questions
Why does Excel say the function is not valid when I copied the formula from a website?
Web pages often use non-breaking spaces, curly quotation marks, or dash characters that look normal but are not valid formula syntax. Delete the formula and retype it, or clear the cell and paste as unformatted text before adding the equals sign back.
Why does a working formula break when I open the file on another computer?
Most often the other computer lacks an add-in that provides the function, has macros disabled so a custom function cannot load, or runs an older Excel version that does not include the function at all. Compare the enabled add-ins and versions on both machines.
How can I tell a misspelled function from a missing one?
Type the name in lowercase and press Enter. If Excel capitalises it, the name is valid and the problem lies elsewhere; if it stays lowercase, Excel does not recognise the name.
Do function names change with the language of Excel?
Yes. Localized versions can require translated function names, and separators may differ too, so a comma may need to be a semicolon. Check the language setting if formulas from another region fail.
Why does a function work in one sheet but not another in the same file?
The failing sheet may reference a defined name that does not exist, contain a hidden character in the formula, or be protected in a way that blocks recalculation. Copy the formula to a clean cell and rebuild it to isolate the cause.