Fix Excel _xlfn and #NAME? Errors on Mac (Macro Templates)
Question details
The user needs to resolve _xlfn and #NAME? errors appearing in an Excel macro-enabled template on one Mac, despite the workbook functioning correctly on another Mac with the same reported software versions.

- Product
- Microsoft Excel
- Device & OS
- macOS
- Scenario
- Opening a macro-enabled Excel template stored on OneDrive that utilizes modern spreadsheet functions like IFS for business sales processes.
- Observed behavior
- Excel prefixes certain formulas with _xlfn and returns #NAME? errors, indicating that the specific function is not recognized or supported by the active Excel installation.
Before proceeding, verify your specific Excel license type by opening the app and clicking 'Excel' > 'About Microsoft Excel' in the top Apple menu bar to confirm your account is actively validated for Microsoft 365 premium functions.
Standardize the Microsoft Office Installation Source
Use this solution if one Mac uses the App Store version while the other uses the direct Microsoft portal version, which can cause feature availability discrepancies.
Even when version numbers match (e.g., version 16.84), installations downloaded from the Mac App Store can occasionally differ in feature rollout or license validation compared to those downloaded directly from Microsoft. Reinstalling from the Microsoft portal ensures consistent feature sets and utilizes Microsoft AutoUpdate.
Open the 'Applications' folder on your Mac, locate Microsoft Excel (and other Office apps), and drag them to the Trash. Empty the Trash to completely remove the App Store installations.
Navigate to office.com in your web browser, sign in with your Microsoft 365 business credentials, and click the 'Install Office' button in the top right corner to download the standalone installer package.
Run the downloaded .pkg file and follow the on-screen prompts. Once installed, open Excel, sign in to activate your license, and go to 'Help' > 'Check for Updates' to ensure Microsoft AutoUpdate is managing your application versions.

Clear Application Cache and Transfer a Verified Copy
Use this method if the installation source is correct but corrupted application data or a broken OneDrive sync is causing the #NAME? error.
Switch to WPS Office for a Seamless Spreadsheet Experience
If Microsoft Excel version discrepancies and subscription validations are causing unsupported function errors across your Macs, consider using WPS Office. It provides robust built-in support for modern spreadsheet formulas, ensuring your critical business templates work flawlessly without complex installation troubleshooting.
- 1. Download WPS Office: Visit the official WPS Office website and download the macOS installer.
- 2. Open Your Template: Launch WPS Spreadsheets, click 'Open', and select your macro-enabled OneDrive template.
- 3. Calculate Formulas: View your spreadsheet natively; formulas like IFS will calculate properly without the _xlfn prefix.

Frequently Asked Questions
What does the _xlfn prefix mean in an Excel formula?
The _xlfn prefix appears in front of a function (like _xlfn.IFS) to indicate that the workbook contains a modern function not supported by the version of Excel currently opening the file. Excel preserves the formula structure but cannot calculate it.
Why does the IFS function work on one Mac but return #NAME? on another with the same version?
This discrepancy frequently occurs due to different installation sources (Mac App Store versus direct Microsoft download) or differing Microsoft 365 subscription license validations. If the app cannot validate a premium subscription, it may disable newer functions like IFS, causing a #NAME? error.
How do I remove the #NAME? error caused by unsupported functions?
You must either update and properly activate your Excel application to a version that supports the function, or open the workbook on a compatible computer and replace the unsupported function (like IFS) with a widely supported alternative, such as nested IF statements.
Does clearing Excel application data delete my workbooks?
No, clearing Excel's application data (cache and preferences) in the Mac Library folder only resets the app's internal configuration and interface settings. It does not delete your saved .xlsx or .xlsm files stored on your local drive or in OneDrive.




