Fix #REF! and #NAME? Errors in an Excel Calendar Template
Question details
Identify and repair broken names or references in an Excel calendar template.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A calendar template uses named formulas and named ranges to calculate and display dates.
- Observed behavior
- The calendar displays #REF! and #NAME? errors after a required name or reference may have been deleted.
If possible, open an unchanged copy of the calendar template alongside the affected workbook so you can compare names and references. Note which cells display errors and whether any sheets, rows, columns, or named ranges were recently deleted.
Restore broken named ranges and formulas in Excel
Use Name Manager and the affected cell formulas to trace missing names and invalid references.
In Excel, open the affected workbook and select Formulas > Name Manager. Look for entries whose Refers to value contains #REF!.
Select a broken name, click Edit, and replace its Refers to value with the correct range or formula. Compare it with the unchanged template if you are unsure what the reference should be.
Select a cell showing #NAME? and inspect its formula in the formula bar. In Formulas > Name Manager, check whether each referenced name exists, is spelled correctly, and has the appropriate workbook or worksheet scope.
If a required name is absent, select New in Name Manager and enter its original name, scope, and valid Refers to value. Alternatively, correct the cell formula to use an existing name or range.
Close Name Manager and review the affected calendar cells. If errors remain, compare the formulas and names with the original template or ask someone to inspect the workbook.
Inspect Calendar Template Names in WPS Spreadsheets
Open the workbook in WPS Spreadsheets to inspect defined names and correct broken references or formulas. Compare complex formulas with the original template and verify the calendar after editing.
- 1. Open the workbook: Open WPS Spreadsheets and use File > Open to select the Excel calendar workbook.
- 2. Inspect defined names: Go to Formulas > Name Manager and look for names that refer to #REF! or ranges that no longer exist.
- 3. Correct names and formulas: Edit an invalid name in Name Manager, or select an error cell and correct its formula in the formula bar. Use the original template to verify the intended references.
- 4. Save and verify: Use File > Save As to save the edited workbook, then review the calendar cells. Check advanced formulas in Excel as well if the template relies on Excel-specific features.

Frequently Asked Questions
What causes #REF! in a calendar template?
A formula or defined name may point to a deleted cell, range, or sheet. Open Formulas > Name Manager and inspect the Refers to values for #REF!.
Why does a calendar cell show #NAME?
Excel may not recognize a name or function in the formula. Select the cell and check the formula bar, then compare any defined names with the entries and scopes in Formulas > Name Manager.
How can I tell what a deleted named range referred to?
Compare the name and its Refers to value with an unchanged copy of the template in Formulas > Name Manager. If no original is available, the intended reference may require inspecting the workbook and related formulas.
Can I turn a one-month calendar template into a 12-month calendar?
Some one-month templates depend on complex named formulas and can break when expanded. For a full-year calendar, consider starting with a 12-month template rather than modifying the one-month design.




