Why Translated Excel Formulas Break (And How to Fix Them)
In brief
Fix #NAME?, #REF!, and sudden zero totals in translated Excel files. Learn how OpenXML stores formulas and how to translate XLSX workbooks safely.
Keywords: why translated excel formulas break #name #ref fix; excel translation breaks formulas; fix #name error after translating excel; vlookup if formula returns 0 after translation; translate xlsx keep formulas intact
Opening a translated .xlsx workbook only to find #NAME? across the P&L tab, #REF! on the executive summary, or an inventory SUMIFS column that suddenly reads 0 usually points to one of four structural breaks. You do not need to rebuild the spreadsheet from scratch. Once you identify which part of the OpenXML structure or cell logic was altered, you can repair the broken workbook in minutes—and set up future sheets so translation never touches their calculation logic.
1. Fixing #NAME? Errors Caused by Translated Function Names
When every formula cell displays #NAME? and clicking the formula bar reveals =SUMME(B2:B15), =SOMME(B2:B15), or =RECHERCHEV(A2, D:E, 2, FAUX), the file was passed through a tool that treated formula definitions as ordinary prose.
An .xlsx file is a ZIP archive containing XML files. Inside xl/worksheets/sheet1.xml, Excel separates a cell's formula (<f>) from its cached value (<v>) and shared text strings (xl/sharedStrings.xml). According to the ECMA-376 OpenXML specification, standard Excel functions inside <f> tags must always be stored in invariant US English (SUM, VLOOKUP, IF, INDEX), regardless of whether the author created the sheet in German, Japanese, or Spanish. When you open the file, Excel dynamically maps SUM to SUMME or 求和 on screen based on your local interface language.
If you copy cells into a web translator, or run a script that blindly translates <f> nodes alongside <t> text nodes, the XML gets saved with <f>SUMME(B2:B15)</f>. Excel's parser reads the XML expecting invariant English, fails to recognize SUMME as an internal opcode, and throws #NAME?.
How to repair a broken sheet right now
- Press
Ctrl+H(Cmd+Hon macOS) to open Find and Replace. - Click Options >> and set Within: to
Workbookand Look in: toFormulas. - Replace the mangled function names and boolean literals with the exact names expected by your current Excel interface language (for example, in an English Excel UI, replace
SUMME(withSUM(,WENN(withIF(, and;FALSCH)with,FALSE)). - If dozens of distinct functions were corrupted, inspect the source
.xlsxby unzipping it (unzip broken.xlsx -d extracted/): you can restore the<f>blocks from the originalxl/worksheets/sheet*.xmlfiles while keeping the translatedxl/sharedStrings.xmltable.
2. Fixing #REF! Across Multi-Sheet Dashboards and VLOOKUP Ranges
If single-sheet totals work fine but your summary tab is full of #REF! or pops up a file-picker dialog asking you to locate an external workbook, look at the bottom tab bar.
Cross-sheet formulas store the target worksheet's literal name inside the formula string, such as ='Sales Q1'!E12 or =VLOOKUP(A4, 'Vendor List'!$A$2:$G$500, 4, FALSE). When an automated script translates the <sheet name="Sales Q1"/> entry inside xl/workbook.xml to Ventas T1 or 第一季度销售, two things go wrong:
- Unless the tool also parses every
<f>tag, Named Range (<definedName>), Chart series, and PivotTable cache across the entire workbook to rewrite'Sales Q1'!into'Ventas T1'!, every cross-sheet pointer breaks immediately with#REF!. - Translated tab names frequently exceed Excel's hard 31-character limit or introduce forbidden characters (
: \ / ? * [ ]), corrupting the workbook XML on open.
How to repair and prevent #REF! tab breaks
- Fast recovery on an already-broken file: Rename the translated worksheet tabs at the bottom of the Excel window back to their exact source-language names (
Sales Q1,Vendor List), then pressCtrl+Alt+F9to force a full workbook recalculation. Once the#REF!or unresolved link errors clear, rename the tabs manually inside Excel's UI—when you rename a tab directly in Excel, Excel automatically rewrites every dependent formula and named range across the workbook. - Prevention: Leave worksheet tab names untranslated during automated batch translation, and only localize the 2 or 3 presentation tabs manually inside Excel afterward.
3. Why IF, COUNTIF, and SUMIFS Silently Drop to 0 (Without Any Error Code)
This is the hardest bug to spot because Excel shows no error triangle at all. Your financial or inventory rollups simply evaluate to 0, FALSE, or #N/A.
Consider an inventory valuation sheet where column F holds the stock status (In Stock or Backordered) and column G calculates active inventory value:
=IF(F2="In Stock", D2*E2, 0)
When you run the workbook through a structurally sound .xlsx translator that properly protects <f> formula tags and translates text cells in xl/sharedStrings.xml, cell F2 is translated from In Stock to 有货 or Auf Lager. Meanwhile, the protected formula in G2 remains =IF(F2="In Stock", D2*E2, 0). Because "Auf Lager" does not equal "In Stock", the IF condition evaluates to FALSE on every row, and your grand total drops to 0. The exact same mismatch hits =COUNTIF(C2:C500, "Approved") and =SUMIFS(H:H, D:D, "North").
Three ways to fix hardcoded string criteria
- Reference a parameter cell instead of quoting strings inline (Recommended): Replace
=IF(F2="In Stock", D2*E2, 0)with=IF(F2=$Z$1, D2*E2, 0), and typeIn Stockinto cellZ1. When the sheet is translated, cellZ1and columnFare both translated identically through the shared string table, soF2=$Z$1staysTRUEin every language. - Separate immutable codes from translated display labels: Keep a narrow column
Econtaining untranslated status codes (1/0, orST_OK/ST_WAIT) and point allIF,SUMIFS, andXLOOKUPformulas at columnEwhile letting columnFcarry the translated human-readable label. - Repair an already-translated sheet: Use
Ctrl+H(Look in: Formulas) to replace"In Stock"with the exact translated string now sitting in columnF.
4. Stopping Numbers from Turning into Unsummable Text (1,250.50 vs. 1.250,50)
If =SUM(D2:D50) returns 0 even though column D is visibly full of prices, click one of the price cells and check the status bar at the bottom right of Excel. If it shows Count instead of Sum, your numbers were converted into text strings.
This happens when someone exports an .xlsx workbook to .csv to run it through a text translator, or uses a translation script that formats numeric values as localized strings. In a native .xlsx worksheet, the number 1250.5 is stored as a raw IEEE 754 float (<v>1250.5</v>) paired with a style index (s="4") that tells Excel whether to display $1,250.50 or 1.250,50 €. Flattening the sheet to text bakes the commas, periods, or currency symbols into the value itself.
If you need to translate a .csv export that will be opened or calculated in Excel, convert the .csv into .xlsx first (see our guide on translating CSV files without breaking columns and fixing UTF-8 garbled characters in Excel CSVs). If you are already looking at text-formatted numbers inside Excel, select the affected column, click Data -> Text to Columns -> Next -> Next -> Advanced, set the Decimal separator and Thousands separator to match the string format inside the cells, and click Finish to coerce them back into real numbers.
5. How We Handle .xlsx Formulas on Equalang (and What You Still Need to Check)
When we built .xlsx support into Equalang Document Translation, we designed the parser around these exact OpenXML boundaries so you do not have to clean up #NAME? or #REF! errors after downloading a translated workbook:
- Formulas and pure numbers never enter the translation pipeline: Numeric
<v>cells and<f>formula definitions are bypassed and written back as-is. Modifying a quantity cell in a translated quotation sheet recalculates subtotals, tax, and grand totals immediately. - Repeated text is translated once: Status labels, category names, and repeated table headers stored in the workbook are deduplicated so identical cell strings are translated once—keeping terminology consistent across rows and saving token usage.
- Worksheet tab names stay untouched: We intentionally leave sheet tab names in their original language so cross-sheet references (
'Sheet1'!A1:B10),VLOOKUPranges, and summary dashboards keep calculating without#REF!breaks. - Cell-level formatting stays in place: Bold text, cell fill colors, borders, and in-cell line breaks (
Alt+Enter) carry over to the translated file.

Two post-translation checks you should still run
Because we never alter <f> formula strings, two spreadsheet behaviors still require a quick human check before you send a translated .xlsx to a client or auditor:
- Quoted criteria inside formulas (
IF,COUNTIF,SUMIFS): As shown in Section 3, if your formula checks=IF(F2="In Stock", ...), the<f>tag stays"In Stock"while cellF2is translated into the target language. Either update that quoted literal in the formula bar after downloading, or point your formula to a reference cell ($Z$1) before uploading. - Column widths and alphanumeric codes: Translating concise Chinese or English headers into German, French, or Spanish often expands text length by 30%–50%, which can clip headers in fixed-width columns or display
###until you pressCtrl+Aand double-click a column boundary (Home -> Format -> AutoFit Column Width). Also scan bill-of-materials (BOM) sheets where units or manufacturer names sit in text columns (for example,pcsor brand names may be translated into local equivalents like个or村田; see our walkthrough on translating export quotation Excel sheets with formulas intact and our step-by-step Excel translation guide).
To translate a workbook, upload your .xlsx file on /documents (new accounts start with 200 free credits, purchased credits never expire, and failed or canceled tasks release reserved credits automatically; see /pricing for token conversion rates). Uploaded and output documents are retained in your account history for 6 months so you can re-download them anytime, or you can delete individual tasks immediately after downloading.
Frequently Asked Questions
Why do functions like XLOOKUP or TEXTJOIN show _xlfn.XLOOKUP and #NAME? after translation?
That specific #NAME? error is a version-compatibility issue rather than a translation bug. Excel prefixes functions introduced after Excel 2007 with _xlfn. inside the XML (<f>_xlfn.XLOOKUP(...)</f>). If a colleague opens the translated .xlsx in Excel 2016 or an older perpetual-license build that lacks XLOOKUP, Excel displays #NAME?. Replace XLOOKUP with INDEX/MATCH if your recipients use legacy Office versions.
Does translating an .xlsx file update PivotTables automatically?
PivotTables store a cached snapshot of their source range inside xl/pivotCache/. When the underlying source table cells are translated in an .xlsx file, the PivotTable may still display the old cached labels until you open the file in Excel, right-click the PivotTable, and click Refresh (or press Ctrl+Alt+F5). Be aware that refreshing a PivotTable whose source column headers were translated will drop fields from the PivotTable layout unless you re-check the renamed fields in the PivotTable Field List.
Can I upload an older .xls (Excel 97–2003) file directly?
No. Legacy .xls files use a proprietary binary BIFF8 stream rather than OpenXML. Open the .xls file in Excel first, click File -> Save As, and save it as an Excel Workbook (.xlsx) before uploading it to /documents.
Sources
- ECMA-376 Office Open XML File Formats Specification (SpreadsheetML
<f>Formula Elements) - Microsoft Learn: Formula element (
CellFormula) in OpenXML Spreadsheet - Microsoft Support: How to correct a
#NAME?error in Excel - Microsoft Support: How to correct a
#REF!error in Excel - Equalang Document Translation (
/documents)
