Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Enter Formula in Cell: Step-by-Step Guide

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To enter a formula in an Excel cell, click the cell, type an equals sign (=), type the formula (for example =A1+B1 or =SUM(A1:A10)), then press Enter. Excel calculates the result and shows it in the cell while the formula itself stays visible in the formula bar. That is the whole process — the rest of this guide covers doing it reliably, the mistakes that make a formula show as text, and how to fix a formula that returns an error.

What You'll Need

  • Excel on Windows, macOS, the web (Microsoft 365), or the Excel mobile app on iPhone or Android. The steps below are written for the desktop version; mobile differences are noted where they matter.
  • A workbook open with at least one sheet. You can use a blank workbook to practise.
  • Basic awareness of cell references: a cell address is a column letter plus a row number, such as A1 or C7.

Step-by-Step

  1. Select the cell where the answer should appear. Click it once. The cell gets a green border and its address appears in the Name Box at the top left. Do not select a cell you want to keep data in — the formula result will overwrite whatever is there.
  2. Type an equals sign. Press the = key. This is what tells Excel you are entering a formula rather than text. As soon as you type it, the formula bar activates and Excel switches into calculation mode.
  3. Type the formula. Two safe patterns to start with:
    • An arithmetic formula using cell references: =A1+B1 adds the values in those two cells.
    • A function: =SUM(A1:A10) adds everything in the range A1 through A10. Type the function name, then an opening parenthesis, and Excel shows a tooltip listing the arguments it expects.
    You can also click cells while typing instead of typing their addresses — Excel inserts the reference for you, which avoids typos.
  4. Close every parenthesis and quote. If you opened a bracket or a quotation mark, close it. Excel will often offer to fix a missing parenthesis when you press Enter, but it is safer to close them yourself.
  5. Press Enter to confirm. The result appears in the cell and the selection moves down one row. If you would rather stay in the same cell, press Ctrl+Enter (Cmd+Enter on Mac) instead.
  6. Check the formula bar. Click the cell again. The formula bar at the top should show the formula starting with =, not the result. If it shows plain text, the entry was treated as text — see Common Mistakes.
  7. Copy the formula if you need it elsewhere. Drag the small square at the bottom-right corner of the selected cell (the fill handle) down or across. Relative references such as A1 adjust automatically; a reference written as $A$1 stays fixed.

On the Excel mobile app, tap the cell, tap the formula bar or the fx button, type the formula, and tap the check mark to confirm. The logic is identical; only the confirmation control differs.

Common Mistakes

  • Forgetting the equals sign. Typing A1+B1 without = makes Excel store it as text. The cell shows the characters, not a number.
  • Leaving the cell formatted as Text. If a cell was formatted as Text before you typed, Excel may keep the formula as literal text even with the =. Change the format to General (Home tab > Number format dropdown), then re-enter the formula. Re-typing is usually required; simply changing the format does not always recalculate the existing entry.
  • Typing spaces inside a function name. =SUM (A1:A10) with a space can be rejected. Keep the function name and the opening parenthesis together.
  • Using a comma where your region expects a semicolon. Argument separators depend on your regional settings. If Excel rejects =SUM(A1,B1), try =SUM(A1;B1).
  • Circular references. A formula that refers to its own cell, directly or through a chain, triggers a circular reference warning and returns 0 or an error. Move the formula to a different cell.
  • Quotes around numbers. ="5" produces text, not the number 5, and will not add correctly.
  • Deleting a referenced cell. If a formula points at a cell you later delete, Excel shows #REF!. Undo the deletion or rewrite the reference.

Tips

  • Press F2 (or double-click the cell) to edit a formula in place. Excel colour-codes the referenced cells so you can see what the formula uses.
  • Use Ctrl+` (the grave accent key) to toggle showing formulas instead of results across the whole sheet — handy for auditing a workbook.
  • Start typing a function name and press Tab to accept Excel's suggestion, which also inserts the opening parenthesis.
  • Use $ to lock a reference before copying: $A$1 locks both column and row, A$1 locks the row only, $A1 locks the column only.
  • Name a range (Formulas > Define Name) and use the name in formulas to make them easier to read.
  • Keep one formula per cell. Combining unrelated calculations into one long formula makes errors much harder to trace.

Troubleshooting

  • The formula shows as text. Check the cell's number format is General or Number, not Text. Also check there is no leading apostrophe before the =. Remove it and re-enter.
  • #NAME? error. Excel does not recognise a function name or a defined name — usually a typo such as =SUMM(. Correct the spelling.
  • #VALUE! error. A referenced cell contains text where a number is expected. Check the source cells for stray spaces or text entries.
  • #DIV/0! error. The formula divides by zero or by an empty cell. Wrap it in IFERROR, for example =IFERROR(A1/B1,""), to show a blank instead.
  • Results do not update. Calculation may be set to Manual. Go to Formulas > Calculation Options and choose Automatic.
  • Nothing happens when you press Enter. You may still be in edit mode inside the formula bar, or the sheet is protected. Check the Review tab for sheet protection.
  • If that did not work, close and reopen the workbook, then try the formula in a brand-new blank cell on a fresh sheet. If it works there, the original cell's formatting or contents are the cause.

Frequently Asked Questions

Why does my formula show the formula instead of the result?

Either the cell is formatted as Text, the entry is missing the leading =, or formula display is switched on with Ctrl+`. Check all three in that order.

How do I edit a formula without retyping it?

Double-click the cell or press F2, make the change, and press Enter. You can also click the cell and edit directly in the formula bar.

What is the difference between Enter and Ctrl+Enter?

Enter confirms the formula and moves the selection down. Ctrl+Enter confirms it and keeps the selection on the same cell.

Can I enter the same formula in several cells at once?

Yes. Select the range, type the formula, and press Ctrl+Enter. Excel fills every selected cell with the formula, adjusting relative references for each row or column.

Why does my formula use semicolons instead of commas?

Excel uses the list separator set in your operating system's regional settings. In many European regions that is a semicolon. Use whichever separator your version accepts.

Do formulas work the same in Excel for the web and mobile?

The formula language is the same. The difference is the interface: on mobile you tap the formula bar or fx button and confirm with a check mark rather than pressing Enter.