Excel Error Codes

Fix #REF! and #NAME? Errors in an Excel Calendar Template

Emma BrownEmma Brown Dec 2, 2026 868 views

Question details

Identify and repair broken names or references in an Excel calendar template.

Fix #REF! and #NAME? Errors 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.
Before you start

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.

Solution 1Recommended

Restore broken named ranges and formulas in Excel

Use Name Manager and the affected cell formulas to trace missing names and invalid references.

1
Inspect defined names

In Excel, open the affected workbook and select Formulas > Name Manager. Look for entries whose Refers to value contains #REF!.

2
Correct invalid references

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.

3
Check missing or misspelled names

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.

4
Restore a missing name

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.

5
Recheck the calendar

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.

Use the original template as a reference: A #REF! error does not reveal the deleted range by itself. Complex calendar templates may have chains of named formulas, so the correct reference may be difficult to reconstruct without the original file.
Repair calendar formulas in WPS

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. 1. Open the workbook: Open WPS Spreadsheets and use File > Open to select the Excel calendar workbook.
  2. 2. Inspect defined names: Go to Formulas > Name Manager and look for names that refer to #REF! or ranges that no longer exist.
  3. 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. 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.
Inspect named ranges used by calendar formulasEdit formulas and references in a familiar spreadsheet interfaceOpen and save Microsoft Excel XLSX filesUse WPS Office free for everyday spreadsheet work
microsoft office alternative - wps office

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.