Download Article
Troubleshoot your formulas in Excel with this simple tutorial
Download Article

This How.com.vn will show you how to fix formulas that aren't working properly in Microsoft Excel. In addition to learning how to edit a formula, you'll also learn how to do some troubleshooting to figure out the root of the error.


Things You Should Know

  • Go to File > Options > Formulas > Automatic to ensure that you have automatic calculating enabled.
  • Excel will only treat a formula as such if you put an equals sign before it.
  • Excel will only calculate formulas with less than 64 functions.
Method 1
Method 1 of 2:

Troubleshooting Broken Formulas

Download Article
  1. How.com.vn English: Step 1 Make sure you have automatic calculating enabled.
    If your formulas aren't calculating, this could be the most obvious fix. Go to File > Options > Formulas > Automatic to enable that feature.
  2. How.com.vn English: Step 2 Make sure your formula is formatted correctly.
    Excel won't consider your syntax a formula unless it starts with an equal sign (=).
    • For example, if you have "A2 + B2," you need to write "=A2 + B2" for Excel to treat it as a formula.
    • You also must use the asterisk (*) to multiply. If you use the X key on your keyboard, the formula will not calculate.
    • Your formula will not calculate if your sheet name (if more than the default "D3") is not in single quotation marks ('). For example, if your cell references your third worksheet, you need to write "='Example Sheet'D3!"
    • If you're referring to a workbook outside of your current file, make sure it is formatted correctly. The outside file name must be surrounded by brackets ([]) followed by the worksheet name and cell range. For example, you'd enter "=[Example Workbook.xlsx]Example Sheet!A1:A8."
    Advertisement
  3. How.com.vn English: Step 3 Check your parentheses and quotation marks.
    For Excel to correctly use your formula, it needs to have an equal amount of open and closed parentheses and quotation marks.
    • For example, if you have "=IF(B5<0),"Not valid",B5*1.05)," you need to change it to "=IF(B5<0,"Not valid",B5*1.05)" so you have the same amount of open and closed parentheses.
    • For quotation marks, you want to surround any text you want to stay text in your formula. For example, if you input "="Today is " & TEXT(TODAY(),"dddd, mmmm dd")", you'll get "Today is Thursday, January 9."
  4. How.com.vn English: Step 4 Fix incorrect values.
    You'll need to change certain values in your formula according to the error to fix the issue. Some examples:
    • If you see the pound sign (#) in the error, you might have an incorrect value. For example, "#VALUE!" indicates incorrect formatting or unsupported data types in arguments.
    • If you see "#REF!", the formula refers to cells you entered that have been deleted or replaced with other data.
    • If you're dividing by 0, you might get the "#DIV!/0!" error. Your calculation could result in a no-value or you need to change some values.
  5. How.com.vn English: Step 5 Fix any formatting that might be confusing Excel.
    If you have a dollar amount in a cell, you shouldn't use the dollar sign ($) since it stands for a function instead of being a dollar sign symbol. If you have 1000 dollars, make sure you write "1000" in the cell, not "$1000."
    • An "####" means the cell is not wide enough to show the cell contents. Drag the cell to widen it or go to Home > Format > AutoFit Column Width.[1]
  6. How.com.vn English: Step 6 Fix broken links (if there are any).
    You can do this by clicking Update when you're prompted by a pop-up box upon opening the spreadsheet project.
  7. How.com.vn English: Step 7 Display the value of your cells, not the syntax.
    If your cell is displaying the actual formula (e.g., "=A2 + B2" instead of "25"), you can fix this by clicking the Formulas tab and clicking Formula Auditing > Show Formulas.
    • You can also check the formatting of your cells if the first step doesn't work. Right-click the cell that isn't displaying correctly and click Format Cells > General and press F2 and Enter on your computer keyboard.
  8. How.com.vn English: Step 8 Make sure you don't have circular references in your formula.
    A circular reference occurs when a formula is located in the same cell it's referencing. To fix this, you can change the location of the formula or change the formula syntax.
    • For example, if you have a formula that says "=A2 + B2" and it's located in A2, most of the time that won't calculate since A2 is an unknown value.
  9. How.com.vn English: Step 9 Make sure your syntax has the appropriate arguments.
    Arguments make the function work (except if you're using "PI" or "TODAY"). You can check out the list of formulas at Microsoft's categorized list of formulas.
  10. How.com.vn English: Step 10 Keep your formula less than 64 functions.
    Excel will only calculate formulas with less than 64 functions.
  11. How.com.vn English: Step 11 Make sure you copy and paste the formula and not the resulting value.
    Copy the cell contents and click the top-left area in the cell to get the paste options. Click Paste Values and Formula. You'll paste the formula instead of the value into the cell.
  12. Advertisement
Method 2
Method 2 of 2:

Editing an Incorrect Formula

Download Article
  1. How.com.vn English: Step 1 Open your project in Excel.
    You can either open the program within Excel by clicking File > Open, or you can right-click the file in your file explorer.
    • This will work for Excel for Office 365, Excel for Office 365 for Mac, Excel for the web, Excel 2019, Excel 2016, Excel 2019 for Mac, Excel 2013, Excel 2010, Excel 2007, Excel 2016 for Mac, Excel for iPad, Excel for Android tablets, and Excel Starter 2010.
  2. How.com.vn English: Step 2 Navigate to the cell with the broken formula.
    You can use your arrows to navigate through the cells, or you can single-click a cell to select it.
  3. How.com.vn English: Step 3 Correct the formula.
    The formula bar will open, which you can usually find above the cell or document space.
    • If you entered "=" as the first character in the cell but didn't intend to enter a formula, you can type an apostrophe before the "=" to avoid inputting a formula. For example, type "'=".
    • If you can't immediately find the typo that's messing up your formula, you can press the ESC key or Cancel to completely erase the formula and try again.
  4. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      • If you have a long or confusing formula with multiple functions, you can use the Evaluate Formula tool to see all the parts of the formula. Select part of the formula, then click Formulas > Evaluate Formulas and a box will pop-up. You might be able to find errors this way, too.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      How.com.vn English: Darlene Antonelli, MA
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Darlene Antonelli, MA. Darlene Antonelli is a Technology Writer and Editor for How.com.vn. Darlene has experience teaching college courses, writing technology-related articles, and working hands-on in the technology field. She earned an MA in Writing from Rowan University in 2012 and wrote her thesis on online communities and the personalities curated in such communities. This article has been viewed 33,722 times.
      How helpful is this?
      Co-authors: 3
      Updated: June 15, 2023
      Views: 33,722
      Categories: Microsoft Excel
      Article SummaryX

      1. Open your project in Excel.
      2. Navigate to the cell with the broken formula.
      3. Correct the formula.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 33,722 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement