How to Fix Excel Name Manager Formulas That Stop Working
Question details
Users need to fix defined names in the Name Manager that stop calculating properly after saving, copying, or sharing a workbook.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Attempting to count or sum cells based on fill color using defined names and legacy macro functions.
- Observed behavior
- Defined name formulas stop working or lose functionality completely after the workbook is saved, copied, or shared with others.
Verify your workbook's file extension to check if it supports macros, as standard XLSX files will automatically strip out legacy Excel 4 macro functions upon saving.
Transition from Color-Based Counting to Data Values
The most robust and reliable way to summarize data is by using actual text or number values instead of cell background colors.
Relying on cell color for data calculation is prone to errors and compatibility issues. Standardizing your data structure with text values ensures functions work across all devices and spreadsheet platforms.
Instead of manually coloring a cell to represent a category (like 'Sales'), type the word 'Sales' into a dedicated column (e.g., Column B).
Use a standard formula like `=SUMIF(B2:B100, "Sales", C2:C100)` to calculate the total amounts in Column C based on the department listed in Column B.
To maintain visual color-coding, highlight your data range, navigate to 'Home' > 'Conditional Formatting', and create a rule to automatically color rows where Column B equals 'Sales'.

Save Workbook in a Macro-Enabled Format
Required if your Name Manager formulas rely on legacy Excel 4 macro functions like GET.CELL to read formatting.
Create a Custom VBA Function for Color Counting
If you strictly need to count by cell fill color without changing your spreadsheet structure, you can use a custom VBA function.
Manage Formulas and Macros Easily with WPS Office
WPS Office offers robust support for advanced formulas, Name Manager configurations, and VBA macros, ensuring your complex data processing works seamlessly without unexpected errors.
- 1. Open WPS Spreadsheets: Launch WPS Office and open your spreadsheet document to begin working with your data.
- 2. Access Formula Tools: Navigate to the 'Formulas' tab on the ribbon to access the Name Manager and easily review or edit defined names.
- 3. Save with Macro Support: Go to 'Menu' > 'Save As' and select 'Macro-Enabled Workbook (*.xlsm)' to securely preserve legacy macro scripts and VBA code.

Frequently Asked Questions
Why do my Excel 4 macro functions disappear after saving?
Standard Excel workbooks (.xlsx) do not support macros. When you save a file containing legacy macro functions (like GET.CELL) as an XLSX, the macro capabilities are stripped out by design. You must save the file as a Macro-Enabled Workbook (.xlsm) or Binary Workbook (.xlsb).
Can I use conditional formatting to sum cells by color?
No, conditional formatting only changes the visual appearance of cells based on specific rules; it does not perform calculations. To count or sum data based on categories, use formulas like COUNTIF or SUMIF relying on text or numerical values.
Are legacy Excel 4 macro functions safe to use?
Legacy macro functions are outdated and are increasingly blocked by modern spreadsheet software security settings due to malware risks. Upgrading your workflow to standard formulas or modern VBA is highly recommended.
How do I open the Name Manager to edit my formulas?
You can open the Name Manager by navigating to the Formulas tab on the top ribbon and clicking 'Name Manager', or by simply pressing the 'Ctrl + F3' shortcut on your keyboard.




