A formula in Excel is an instruction that begins with an equals sign (=) and tells the program to calculate something from the values in your cells rather than display text. If you type =2+3 into a cell and press Enter, Excel shows 5; the calculation happens behind the scenes, and the cell keeps the formula so it can recalculate whenever the numbers it depends on change. That single character, the equals sign, is what separates a formula from ordinary data: type 2+3 without it and Excel stores the literal text "2+3" and does no math at all.

How an Excel Formula Is Built

Every formula has the same basic shape: it opens with =, then combines cell references, operators, values and functions to produce one result. A typical example is =A1*B1, which multiplies whatever number sits in A1 by whatever sits in B1. Point-and-click entry also works and is often safer when you are starting out: type =, click a cell, type the operator, click another cell, and press Enter.

  • Cell references point to where the data lives instead of repeating the values themselves. A1 is a relative reference that shifts when the formula is copied; $A$1 is an absolute reference that stays fixed.
  • Operators do the arithmetic: + add, - subtract, * multiply, / divide, and ^ raise to a power.
  • Functions are named built-ins followed by parentheses, such as SUM, AVERAGE or IF. They accept arguments separated by commas in most regions: =SUM(A1:A10) adds a whole range at once.
  • Text and logical values are wrapped in quotation marks when used as formula arguments, for example =IF(A1>100,"Over","OK").

The order of operations follows standard arithmetic, with multiplication and division before addition and subtraction. Parentheses change that order, so =(A1+B1)*2 doubles the sum while =A1+B1*2 only doubles B1.

The Difference Between a Formula and a Function

People often use the two words interchangeably, which causes confusion. A formula is the whole expression that starts with =. A function is one component a formula can contain. So =SUM(A1:A5)+10 is a formula that includes the SUM function. You can write perfectly good formulas with no functions at all, such as =A2-A3, and you can nest functions inside one another, as in =IF(SUM(A1:A5)>100,"High","Low"). Treating "formula" as a synonym for "function" will still usually be understood, but it is loose usage rather than a precise definition.

Common Formulas and What They Do

Most day-to-day spreadsheet work relies on a small set of formulas. Each of these is entered in the cell where you want the result, never inside the cell you are calculating from unless you are deliberately building a circular reference.

  • =SUM(B2:B20) totals a column of expenses or scores.
  • =AVERAGE(B2:B20) gives the mean, ignoring empty cells.
  • =COUNT(C2:C20) counts how many cells contain numbers; COUNTA counts any non-empty cell including text.
  • =IF(D2>=60,"Pass","Fail") returns one of two labels based on a test.
  • =ROUND(E2,2) rounds a number to two decimal places.
  • =VLOOKUP(A2,Sheet2!A:D,4,FALSE) looks up a value in another table and returns a matching column.
  • =TODAY() returns the current date and recalculates each time the file opens.

A worked example makes the mechanics clearer. Suppose A2 holds a unit price of 12 and B2 a quantity of 4. Enter =A2*B2 in C2 and Excel shows 48. Change B2 to 5 and C2 becomes 60 immediately. This recalculation is why formulas are preferred over typing results: the sheet stays correct when the inputs change.

Common Problems and How Excel Reports Them

Errors in formulas usually fall into a few recognisable categories, and each has a clear cause.

  • #VALUE! means a formula expected a number but found text, often from a cell that looks numeric but is stored as text.
  • #DIV/0! means division by zero or by an empty cell. Wrapping the division in IFERROR, as in =IFERROR(A2/B2,0), replaces the error with a chosen value.
  • #REF! appears when a referenced cell or column has been deleted.
  • #NAME? usually means a function name is misspelled or a defined name no longer exists.
  • #### in a cell is not an error but a column too narrow for the result; widening the column reveals the number.

A frequent misconception is that a formula typed into a cell formatted as Text will calculate. It will not, and the equals sign shows up literally. Change the cell format to General, then re-enter the formula by pressing F2 and Enter so Excel parses it fresh. Another common trap is copying a formula down a column without locking the right references with dollar signs, so the row offset breaks the result. If results look wrong after a copy, check which references are absolute.

Formula vs. Value: When to Use Each

A formula stores logic; a value stores a result. Use formulas whenever the underlying data might change, because the result updates automatically. Use plain values when you are entering fixed data such as a date of birth or a rate that genuinely never changes, or when you want to hand off a locked report. You can convert a formula to its current value by copying the cell and pasting with Paste Special > Values; note that this replacement is permanent, so the calculation is gone and the cell will no longer update. Keep a copy of the original file if you may need to recalculate later.

Keyboard habits speed this up on the desktop versions. Press F2 to edit the formula in the active cell, Ctrl+Enter to fill the selected range at once, and Ctrl+` to toggle showing formulas instead of results across the sheet. Labels and shortcuts can differ slightly between Excel versions, operating systems and regions, and Excel on the web offers a smaller set of features than the desktop application.

Frequently Asked Questions

Does every Excel formula have to start with an equals sign?

In practice yes. The equals sign tells Excel to treat what follows as a calculation. Without it the entry is stored as text. A leading plus or minus can also start a calculation in some contexts, but the equals sign is the standard and clearest form.

Can a formula refer to a cell on another sheet?

Yes. Include the sheet name followed by an exclamation mark, such as =Sheet2!A1. If the sheet name contains spaces, wrap it in single quotes, as in ='Sales Data'!A1.

What does it mean when Excel says a formula has a circular reference?

It means the formula ultimately depends on its own cell, directly or through a chain of other cells. Excel cannot resolve that loop, so it warns you and may show a zero. Break the loop by removing the self-reference or moving the calculation to a different cell.

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

Most often the cell is formatted as Text, so set it to General and re-enter the formula. Another cause is that Show Formulas is turned on; toggle that view off from the Formulas tab so results display again.

Is a formula the same thing as a function?

No. A formula is the complete expression beginning with =, while a function is a named operation such as SUM or IF that can be used inside a formula. Every function use is part of a formula, but not every formula uses a function.

Can I use a formula to combine text and numbers?

Yes. Use the ampersand to join pieces, such as ="Total: "&A1, or the TEXTJOIN and CONCAT functions in newer versions. The cell result is text even when it contains numbers.