Skip to Content
TroubleshootingFormulas and workbooksFix a #NAME? error
All platforms

Fix a #NAME? error

Check the formula namespace, add-in status, and platform support when Excel doesn't recognize a function.

Excel shows #NAME? when it doesn't recognize part of a formula. With a MarketXLS formula, the common causes are the wrong platform syntax, an add-in that hasn't loaded, or a misspelled function name.

Before you rename several formulas, check whether the function works on your add-in. Some Microsoft 365 functions use a different registered name, not only an mxls. prefix.

Check the platform syntax

Use the syntax for your add-in:

Add-inTest formula
Windows desktop=Last("MSFT")
Mac or Excel for the web=mxls.Last("MSFT")

If you moved the workbook between platforms, read Compare formula syntax by platform.

Use the unprefixed function name with the Windows desktop add-in.
Use the mxls. namespace with the Microsoft 365 add-in.

Check the add-in

Windows desktop

  1. Confirm that the MarketXLS ribbon tab is visible.
  2. If it isn't visible, restore the missing ribbon.
  3. Close Excel, open it again, and test the formula in a blank workbook.

Mac or Excel for the web

  1. Open MarketXLS (Web) from the ribbon.
  2. Confirm that the task pane loads.
  3. Sign in if the task pane asks you to do so.
  4. Test =mxls.Last("MSFT") in a blank workbook.
On Windows, confirm that Excel loaded the MarketXLS COM add-in before you rename formulas.

Check the function name

Search the formula reference. Copy the function name and confirm that it is available on your platform.

If the function works in a blank workbook but not in the original workbook, save a copy of the original file and check for old formula names or links to another workbook.


© 2026 MarketXLS. Financial data documentation for Excel.