Excel formulas not working usually means the calculation mode is set to manual, the cell is formatted as text, or the formula contains a syntax error such as missing parentheses or quotes. The fix is almost always to check the formula bar, ensure the cell is not formatted as text, and change the calculation mode to automatic in the Formulas tab.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- A spreadsheet file containing the data and the problematic formula.
- Basic keyboard skills for navigating menus and typing.
Step-by-Step
- Verify the Syntax in the Formula Bar. Click on the cell containing the formula that is not calculating. Look at the formula bar above the grid. Ensure the formula is written correctly. Common errors include missing closing parentheses
), missing colons:in ranges, or using text without quotes around it (e.g., typing=SUM(A1 A2)instead of=SUM(A1:A2)). Correct any typos directly in the formula bar and press Enter. - Check for Hidden Characters or Spaces. Sometimes data copied from websites or other programs includes invisible characters that break formulas. To check, click the cell and press F2 to edit it. Look closely at the beginning or end of the numbers or text in the formula. If there are stray spaces, press Backspace to remove them. Alternatively, use the TRIM function to clean the data (e.g.,
=SUM(TRIM(A1), TRIM(A2))). - Ensure the Cell Format is Not 'Text'. If a cell is formatted as Text, Excel treats the data as static characters and will not calculate it as a number or date, even if the formula is correct. To fix this, click the cell, go to the Home tab on the ribbon, find the Number group, and click the dropdown menu. Select either Number or General. If the dropdown is grayed out, the cell might be locked; select another cell first. If the formula still shows the original value instead of the result, press Ctrl + Z to undo the format change, then press Ctrl + Shift + F9 to force a recalculation.
- Change Calculation Mode to Automatic. If the calculation mode is set to Manual, Excel will only calculate formulas when you specifically tell it to, such as pressing F9 or saving the file. Click the Formulas tab on the ribbon. Look for the Calculation group. If you see "Automatic" is selected, the mode is fine. If it says "Manual" or there is no button visible, click the dropdown arrow next to "Calculation Options" and select Automatic. The sheet will now calculate immediately as you type.
- Check for Circular References. A circular reference occurs when a formula refers to its own cell, either directly or indirectly through other cells. This prevents Excel from calculating the result. To check, go to the Formulas tab and look at the left side for "Error Checking". If a circular reference warning appears, click it to see which cell is involved. You must restructure the formula so that the cell does not refer to itself.
- Use the Evaluate Formula Feature. If the formula looks correct but still fails, use the built-in debugger. Select the cell with the formula. Go to the Formulas tab and click "Evaluate Formula". A dialog box will show the formula broken down step-by-step. Click "Evaluate" to see the result of the first part of the calculation. If you see an error at any step, that indicates the source of the problem (e.g., a text value where a number is expected). Fix the underlying data or formula structure.
- Check for Data Source Issues (External Links). If your formula references a closed workbook or a data source that is no longer available, Excel may display a #REF! error or refuse to calculate. Ensure all linked workbooks are open. If the data source is a database or web query, verify the connection settings and refresh the data using the "Refresh All" button on the Data tab.
- Reinstall or Repair Office. If none of the above steps resolve the issue, the installation of Excel may be corrupted. Go to Settings > Apps > Installed Apps (or Control Panel > Programs and Features). Find Microsoft Office or Excel in the list. Click the three dots next to it and select Modify or Change. Choose the option to Repair the installation. This will restore missing system files without deleting your personal files.
Common Mistakes
- Confusing absolute and relative references. Using a dollar sign
$incorrectly can cause a formula to break when copied to other cells. - Forgetting to quote text strings. In formulas like
=IF(A1="Yes", "Approved", "Pending"), the word "Yes" must be in double quotes, or Excel will interpret it as a cell reference. - Typing numbers with currency symbols or commas (e.g., $1,000) directly into a formula. These must be typed as 1000.
- Assuming a formula works just because it looks right. Syntax errors are often subtle.
Tips
- Always press F9 to manually calculate a specific part of a formula in the formula bar for debugging.
- Use the F2 key to quickly enter edit mode for the selected cell.
- Enable "Show Formulas" in the Formulas tab to view all formulas at once instead of their results.
- Check for hidden rows or columns. If the data used in a formula is hidden, the result will still calculate, but you might not see the intermediate steps.
Troubleshooting
If the formula still shows an error code like #VALUE!, #DIV/0!, or #N/A, the error indicates a specific type of failure. #VALUE! usually means you are trying to perform math on text. #DIV/0! means you are dividing by zero. #N/A means a lookup function (like VLOOKUP or XLOOKUP) could not find the value you are searching for. Check the specific data types in your cells to resolve these codes.
Frequently Asked Questions
Why does Excel show the formula as text instead of the result?
This usually happens if the cell is formatted as Text. Change the cell format to Number or General, then press Ctrl + Shift + F9 to recalculate.
How do I make Excel calculate automatically?
Go to the Formulas tab and click Calculation Options > Automatic. You can also press F9 to calculate the entire sheet or Ctrl + Shift + F9 to calculate just the active sheet.
What does #REF! mean in Excel?
This error means a cell reference is invalid. It often occurs after deleting rows or columns that were referenced by a formula.
Why is my SUM function returning zero?
The SUM function returns zero if the referenced cells are empty or contain text. Ensure the cells contain numeric values and are not formatted as text.
Can I calculate only specific parts of a formula?
Yes. Click on the cell containing the formula, press F2 to edit it, and select the specific section you want to evaluate. Press F9 to see the result of that section alone.