Excel Error Codes

Fix Excel 2016 Not Recognizing the SWITCH Function (#NAME Error)

Camila MilosovichCamila Milosovich Nov 2, 2026 869 views

Question details

The user is attempting to use the SWITCH function in Excel 2016, but the software fails to recognize it, excluding it from the function list and producing an error.

Why Excel 2016 Does Not Recognize the SWITCH Function
Product
Microsoft Excel 2016
Device & OS
not provided
Scenario
Writing a logical formula to evaluate an expression against a list of specific values to return a corresponding result.
Observed behavior
Excel returns a #NAME? error because the SWITCH function is unsupported in the 2016 version, and it does not appear in autocomplete.
Before you start

Verify your exact Excel version by navigating to File > Account. If you are using a standalone Office 2016 license rather than Microsoft 365, you will need to adapt your workflow using alternative formulas.

Solution 1Recommended

Replace SWITCH with Nested IF Statements

Use a series of nested IF functions to replicate the exact logical behavior of the unsupported SWITCH function.

The IF function is universally supported across all versions of Excel. By nesting multiple IF statements, you can evaluate multiple conditions one after another, which achieves the exact same result as the SWITCH function.

1
Structure your logical conditions

Determine the exact values you want to evaluate and the specific results you want returned for each value.

2
Write the nested IF formula

Select the target cell and type your nested IF formula. For example, instead of =SWITCH(A1, 1, "Apples", 2, "Oranges", "Unknown"), type =IF(A1=1, "Apples", IF(A1=2, "Oranges", "Unknown")).

3
Apply the formula

Press Enter to execute the formula. Double-check your parenthesis count at the end of the formula to ensure all nested statements are properly closed.

Replace SWITCH with Nested IF Statements
Formatting Tip: To make long nested IF statements easier to read, you can add line breaks inside the formula bar by pressing Alt + Enter (Windows) or Option + Return (Mac).
Free Microsoft Office alternative

Experience Seamless Spreadsheet Compatibility with WPS Office

Don't let outdated Excel versions hold back your productivity. WPS Office provides a lightweight, highly capable spreadsheet alternative that effortlessly handles complex data and is fully compatible with Microsoft Excel formats. Enjoy a modern interface and rich formula support without the burden of expensive software upgrades.

  1. 1. Download WPS Office: Visit the official WPS website to download the free office suite directly to your computer.
  2. 2. Install and Launch: Run the quick installer, then open the WPS Spreadsheet application.
  3. 3. Open Your Workbook: Drag and drop your existing Excel file into WPS Spreadsheet to continue your work without missing out on modern formula calculation.
Highly compatible with Microsoft Excel file formats (.xlsx, .xls, .csv)Supports modern functions and formulas for advanced data analysisFamiliar and intuitive user interface requiring zero learning curveLightweight application that installs quickly and runs smoothly on your device
microsoft office alternative - wps office

Frequently Asked Questions

Why do I get a #NAME? error with the SWITCH function?

The #NAME? error occurs because the SWITCH function is completely unsupported in Excel 2016. The software does not recognize the function's name and mistakenly assumes you are trying to type an undefined named range.

Is there an update or add-in to get the SWITCH function in Excel 2016?

No, Microsoft does not provide any official updates or add-ins to bring the SWITCH function to the standalone 2016 version. The function is strictly reserved for Excel 2019, Microsoft 365, and newer versions.

Does the IFS function work in Excel 2016?

No. Similar to the SWITCH function, the IFS function was introduced in later versions (Office 2019 and Microsoft 365) and is not supported in a standard Office 2016 installation.