Excel #NAME? on an AI formula: function missing in your version
An AI Excel formula showing #NAME? is often a newer function your Excel lacks. Check for the _xlfn prefix and your version, then ask with the version named.
You paste =XLOOKUP(E2,A2:A100,B2:B100) from an AI and the cell shows only #NAME?. Excel did not recognize a name in the formula, and with AI formulas the usual culprit is a newer function your Excel version doesn't have. Check whether the function exists in your version first, and if it doesn't, ask again with your version stated.
[1] Read the formula in the formula bar as is. If _xlfn. sits in front of the function name, that function isn't supported in the Excel you are running.
=_xlfn.XLOOKUP(E2,A2:A100,B2:B100)Microsoft's formula compatibility article explains that when a workbook with newer functions is opened in an earlier version of Excel, those functions return #NAME?, and in some cases the prefix _xlfn is added to the formula (for example =_xlfn.IFERROR(1,2)). You often see it in files made in a newer version.
[2] Check your Excel version under File → Account → About Excel (Microsoft 365, 2021, 2019 and so on). Then open the Microsoft help page for the function the AI used and read its version notes.
| Function | What the Microsoft docs say |
|---|---|
XLOOKUP | Not available in Excel 2016 or Excel 2019 |
FILTER | "Applies To" lists Microsoft 365, 2021, 2024 and others, but not 2019 or 2016 |
[3] If the function isn't in your version, ask again with the version named. Tell the AI your Excel version and to avoid functions it lacks.
I need a formula for Excel 2019 (desktop). Don't use functions Excel 2019 doesn't have, such as XLOOKUP, and list each function you use with a line on whether Excel 2019 has it.Find the value in E2 among the product codes in column A and return the price from column B in the same row; if not found, show "none".Don't trust the AI's "available" notes as they are; check each function name in the formula against the help pages as in [2] before pasting.
[4] If the version is not the problem, go through the other causes Microsoft lists.
| Cause | Check |
|---|---|
| Typo in the function name | Type = and the first letters; does the name appear in the autocomplete list? |
| Undefined name | Is the name (for example Profit) in Formulas → Name Manager? |
| Misspelled defined name | Insert it with Formulas → Use in Formula to get the spelling right |
| Text without double quotes | Are text values in the formula wrapped in "..."? |
| Missing colon in a range | Not written as B2B12 instead of B2:B12? |
| Function that needs an add-in | Functions such as EUROCONVERT need their add-in enabled |
Microsoft's docs recommend the autocomplete list and the Insert Function wizard on the Formulas tab to avoid typos. Re-entering the function name from the list is the quickest way to rule a typo in or out.
[5] When several people open the file in different versions, the compatibility article also mentions replacing formulas that use new functions with their results. Do that only in a copy meant for reporting; in the original, those cells can no longer recalculate.
For #SPILL! from the same kind of AI formula, see Diagnose an Excel #SPILL! error with AI; for #CALC! when a FILTER result is empty, see Excel #CALC! from FILTER: add if_empty.