Excel formulas usually fail in Google Sheets because of syntax differences, unsupported functions, or locale settings. The fix is to convert the formula to Google Sheets syntax, replace any Excel-only functions with supported equivalents, and check that your spreadsheet's locale uses the same argument separators as your formula. Most broken formulas fall into one of these three categories, and once you identify which one applies, the repair is quick.
What You'll Need
- A Google account with access to Google Sheets (free with any Google account).
- The original Excel formula or the file you are importing.
- Basic familiarity with your formula's purpose so you can verify the result after fixing it.
Step-by-Step
- Check the error message first. Click the cell with the broken formula. Google Sheets shows a small error indicator and a message such as #NAME?, #VALUE!, #REF!, or #ERROR!. The message tells you what kind of problem you have: #NAME? usually means an unsupported function or misspelled name; #VALUE! usually means wrong argument types; #REF! means a reference points to a deleted or invalid cell. Note the exact message before changing anything.
- Confirm the function exists in Google Sheets. Open Google's official function list (search "Google Sheets function list") and look up the function name from your Excel formula. Functions like XLOOKUP, FILTER, SORT, and UNIQUE are supported in current Google Sheets. Older Excel functions such as WEBSERVICE, some financial functions, and certain array formulas may not be. If the function is missing, you need a replacement (see the next step).
- Replace Excel-only functions with Google Sheets equivalents. Common swaps: Excel's TEXTJOIN works in Sheets; CONCATENATE works but IFERROR and IFS are also supported. For functions that do not exist, rebuild the logic with supported ones. For example, Excel's NUMBERVALUE is not available in Google Sheets, so use VALUE with locale-aware formatting or split the text manually. Excel's DATEDIF exists in Sheets but behaves the same way. If you are unsure whether a function is supported, type it into a cell and watch for #NAME?.
- Fix argument separators. Excel in many locales uses commas between arguments, but Google Sheets uses the separator set by the spreadsheet's locale. In the U.S. locale, Sheets uses commas; in many European locales, it uses semicolons. If your formula came from an Excel file set to a different locale, replace commas with semicolons or change the spreadsheet locale. To check: open File > Settings and look at the Locale setting. Changing locale affects how numbers and dates are parsed, so do this deliberately.
- Check cell references and sheet names. Excel formulas that reference another sheet use syntax like Sheet1!A1. Google Sheets uses the same exclamation mark, but if the sheet name contains spaces or special characters, wrap it in single quotes: 'My Sheet'!A1. If you imported an Excel file, verify that references did not shift. A #REF! error almost always means a reference broke during import or a row/column was deleted.
- Re-enter the formula manually if import broke it. Sometimes importing an .xlsx file converts formulas to static values or mangles array formulas. Click the cell, check the formula bar, and if the formula looks wrong, retype it in Google Sheets syntax. For array formulas, Excel uses Ctrl+Shift+Enter; Google Sheets uses the ARRAYFORMULA function instead. Wrap your range logic in ARRAYFORMULA(...) to get the same spill behavior.
- Test with a simple version. Before debugging a long formula, paste a simplified version into an empty cell: just the function name with literal values, e.g., =VLOOKUP(1, A1:B5, 2, FALSE). If that works, the problem is in your references or nested logic, not the function itself. Add pieces back one at a time until it breaks.
- Recalculate and refresh. Google Sheets recalculates automatically, but if a formula seems stuck, press Ctrl+R (Cmd+R on Mac) to recalculate, or reload the browser tab. If you are using a connected sheet or imported data, check that the source range still exists.
Common Mistakes
- Assuming every Excel function exists in Google Sheets. Many do, but not all, and the list changes over time. Always check the official function list.
- Forgetting that Google Sheets uses the spreadsheet locale for argument separators. A formula copied from a European Excel file may need semicolons instead of commas.
- Pasting formulas as plain text. If the formula shows as text instead of calculating, the cell may be formatted as plain text. Select the cell, then use Format > Number > Automatic, and re-enter the formula.
- Using relative references where absolute references are needed. When you copy a formula down, Excel and Sheets behave the same way, but imported files sometimes convert $A$1 to A1. Check the dollar signs.
- Ignoring the error message. Each error code points to a specific cause; guessing wastes time.
Tips
- Use Google Sheets' built-in formula suggestions: start typing = and the function name, and a tooltip shows the expected arguments.
- When converting a complex Excel workbook, import it with File > Import and choose "Convert uploads to Google Sheets format" so formulas are translated where possible.
- For array formulas, replace Excel's Ctrl+Shift+Enter entry with ARRAYFORMULA. For dynamic arrays like FILTER and SORT, Google Sheets handles them natively without special entry.
- Keep a small test sheet with one working example of each formula you rely on. When something breaks, compare against the working version.
- If you collaborate, note that Google Sheets does not support Excel's "Calculate Now" macro shortcuts; use the menu or keyboard shortcut for recalculation instead.
Troubleshooting
If the formula still does not work after the steps above, work through these checks in order.
- #NAME? persists: The function name is misspelled or unsupported. Double-check spelling against the official list, and confirm you are not using an Excel add-in function that requires a plugin.
- #VALUE! appears: One argument has the wrong type. For example, a text value where a number is expected. Use ISNUMBER or ISTEXT in a helper cell to inspect each argument.
- #REF! appears: A reference points to a deleted cell or sheet. Use Find and Replace to locate the broken reference, or click the cell and look for the red reference marker in the formula bar.
- Formula shows as text: The cell is formatted as plain text. Change the format to Automatic and re-enter the formula.
- Formula works in one cell but not another: Check relative vs. absolute references and whether the target cell is inside a merged range or protected range.
- Imported file formulas are all static values: The import may have flattened formulas. Re-import with the conversion option, or rebuild the formulas in Sheets.
- Nothing changes after editing: Reload the tab, check your internet connection, and confirm the file is not in a view-only mode.
Frequently Asked Questions
Why does my Excel formula show #NAME? in Google Sheets?
#NAME? means Google Sheets does not recognize the function name. Either the function does not exist in Sheets, or it is misspelled. Check the official Google Sheets function list and replace unsupported functions with supported equivalents.
Can I use Excel's XLOOKUP in Google Sheets?
Yes, XLOOKUP is supported in current Google Sheets. If it returns an error, check that your ranges are the same size and that the lookup value type matches the array type.
Why do commas in my formula cause an error?
Google Sheets uses the argument separator set by the spreadsheet locale. In many European locales, that separator is a semicolon. Either change the locale in File > Settings or replace commas with semicolons.
How do I convert an Excel array formula to Google Sheets?
Replace the Ctrl+Shift+Enter entry with the ARRAYFORMULA function. For example, =ARRAYFORMULA(A1:A10*B1:B10) replaces an Excel array formula that multiplies two ranges.
Why did my formula turn into a static value after import?
Some Excel features, such as certain macros or external data connections, do not convert. Re-import the file using File > Import and select the option to convert uploads to Google Sheets format, then re-enter any formulas that were flattened.
Does Google Sheets support every Excel function?
No. Most common functions are supported, but some Excel-only functions and add-in functions are not. Always verify against Google's official function list before relying on a formula.