To build a formula in Excel, start every formula with an equals sign (=), then combine cell references, numbers, and operators (like +, -, *, /) to perform calculations. For example, typing =A1+B1 in a cell adds the values from A1 and B1. Press Enter to see the result. That is the core mechanic: the equals sign tells Excel you are entering a formula, not just text. This guide walks you through building formulas from scratch, using functions, copying them correctly, and fixing common errors. You need Excel installed (any recent version) and a basic understanding of cell references (like A1, B2). No prior formula experience is required.

What You'll Need

  • Microsoft Excel (desktop or web version; steps apply to both, though menu labels may differ slightly by version, device, or region).
  • A spreadsheet with some data (or create a new blank workbook).
  • Basic familiarity with rows (numbered) and columns (lettered).

Step-by-Step

  1. Select the cell where you want the result. Click any empty cell, for example C1. This is where the formula's output will appear.
  2. Type an equals sign (=). This is mandatory. Without it, Excel treats your entry as text. You will see the formula bar at the top activate.
  3. Enter your calculation using cell references. For instance, type A1+B1 to add two cells. You can also use numbers directly (like =5*3), but references are better because they update automatically when data changes. Operators: + (add), - (subtract), * (multiply), / (divide), ^ (exponent).
  4. Press Enter. The result appears in the cell, and the formula remains visible in the formula bar when the cell is selected. If you see an error like #NAME?, check for typos in cell references or function names.
  5. Use functions for common calculations. Functions are predefined formulas. For example, to sum a range, type =SUM(A1:A10). To average, use =AVERAGE(B1:B10). Start typing = followed by the function name; Excel shows a dropdown of matching functions. Double-click one to insert it, then select the range or type it.
  6. Copy the formula to other cells. Select the cell with the formula, then drag the fill handle (small square at the bottom-right corner of the cell) down or across. Excel adjusts relative references automatically (e.g., A1 becomes A2 when copied down). To keep a reference fixed, use absolute references with dollar signs: $A$1. Press F4 after typing a reference to toggle absolute/relative.
  7. Edit a formula. Click the cell and press F2, or click in the formula bar. Make changes and press Enter. To delete a formula, select the cell and press Delete.
  8. Check for errors with formula auditing. On the Formulas tab, use "Evaluate Formula" to step through calculation, or "Trace Precedents" to see which cells feed into the formula. These tools help debug complex formulas.

Common Mistakes

  • Forgetting the equals sign. Typing A1+B1 without = results in text, not a calculation.
  • Using spaces incorrectly. Excel ignores spaces around operators, but spaces inside function names or cell references cause errors. Use commas to separate function arguments (e.g., =SUM(A1, B1)).
  • Mismatched parentheses. Every opening parenthesis needs a closing one. Excel may auto-correct, but always verify.
  • Relative vs. absolute references. Copying a formula with relative references (like A1) changes them based on position. If you need a fixed reference, use $A$1.
  • Circular references. A formula that refers to its own cell (directly or indirectly) causes a circular reference warning. Check the status bar for the error and adjust references.
  • Typing numbers as text. If a cell is formatted as Text, formulas may treat numbers as text. Change format to General or Number before entering formulas.

Tips

  • Use the formula bar to see the full formula of a selected cell; it is easier to edit there than in the cell.
  • Press Ctrl+` (grave accent) to toggle showing formulas instead of results in all cells. This helps audit a worksheet.
  • Name ranges (Formulas > Define Name) to make formulas more readable, e.g., =SUM(Sales) instead of =SUM(B2:B100).
  • Use the Insert Function button (fx) next to the formula bar to browse and get help on functions.
  • When building complex formulas, break them into smaller parts in separate cells, then combine. This simplifies debugging.

Troubleshooting

If your formula returns an error, check these common issues:

  • #NAME?: Misspelled function name or undefined named range. Check spelling and ensure names are defined.
  • #VALUE!: Wrong type of argument, e.g., trying to add text to a number. Verify cell contents are numeric.
  • #DIV/0!: Dividing by zero or an empty cell. Use IFERROR to handle, e.g., =IFERROR(A1/B1, "").
  • #REF!: Invalid cell reference, often after deleting cells. Undo deletion or adjust formula.
  • Formula not calculating: Check if Calculation Options is set to Manual (Formulas tab > Calculation Options > Automatic). Also ensure the cell format is not Text.
  • Circular reference warning: Identify the cell causing it via the status bar message and adjust references.

If a formula still does not work, try retyping it from scratch, or use the Evaluate Formula tool to step through. For persistent issues, copy the formula to a new cell to see if the problem is cell-specific.

Frequently Asked Questions

How do I start a formula in Excel?

Type an equals sign (=) in a cell, then enter your calculation or function. Press Enter to execute.

What is the difference between a formula and a function?

A formula is any calculation you build (e.g., =A1+B1). A function is a predefined formula like SUM or AVERAGE that simplifies complex operations.

How do I copy a formula without changing cell references?

Use absolute references with dollar signs (e.g., $A$1) or press F4 after typing a reference to toggle between relative and absolute.

Why is my formula showing as text?

The cell may be formatted as Text, or you may have forgotten the equals sign. Check the cell format (Home > Number Format) and ensure the formula begins with =.

Can I use formulas across different sheets?

Yes. Reference cells on another sheet by including the sheet name followed by an exclamation mark, e.g., =Sheet2!A1.

How do I fix a #VALUE! error?

Ensure all arguments in the formula are of the correct type. For example, if adding, both cells should contain numbers, not text. Use ISNUMBER to check.