What a formula does and how Excel reads it
A formula in Excel is an instruction that tells the program to perform a calculation or action on the numbers or text in your cells. Every formula starts with an equals sign (=), which signals to Excel that what follows is a command, not just text you typed.
When you type =2+2 into a cell and press Enter, Excel reads that equals sign, performs the addition, and shows you 4 in the cell. The formula itself stays hidden unless you click on that cell again — then you see the formula in the formula bar at the top of your screen.
The real power comes when you reference cells instead of typing numbers directly. If cell A1 contains 10 and cell B1 contains 5, you can write =A1+B1 in cell C1, and Excel will show 15. If you later change the 10 to 20, cell C1 automatically updates to 25. That's the difference between a static number and a working formula.
Key Takeaways
- Every formula begins with an equals sign, followed by the calculation or instruction you want Excel to perform.
- Reference cells by their column letter and row number (A1, B2, C3) rather than typing numbers directly, so your formula updates when data changes.
- The four basic operators are + for addition, - for subtraction, * for multiplication, and / for division.
- You can copy a formula down or across to other cells, and Excel automatically adjusts the cell references for each row or column.
- Built-in functions like SUM, AVERAGE, and COUNT let you perform common calculations without typing each cell reference individually.
The four basic math operators and how to combine them
Excel recognizes four operators for basic math: + (addition), - (subtraction), * (multiplication), and / (division). You write them in the same order you would on paper.
If you have a price in A1 and a quantity in B1, the formula =A1*B1 multiplies them together. If you have a total in A1 and want to divide it equally among 4 people, write =A1/4. You can also combine operators in one formula: =A1+B1*C1 works, but Excel follows the standard order of operations — it multiplies B1 and C1 first, then adds A1 to the result. If you want addition to happen first, use parentheses: =(A1+B1)*C1.
Parentheses always tell Excel to do that part of the calculation before anything else. You can nest them too: =((A1+B1)*C1)/D1 is perfectly valid. The more complex your formula, the more useful parentheses become for making sure Excel does what you actually want.
Using cell references so your formula updates automatically
The reason to use cell references instead of typing numbers is that your formula stays connected to the data. Suppose you have a monthly budget: rent in A1, utilities in A2, groceries in A3. You write =A1+A2+A3 in cell A4 to get your total spending.
Next month, rent goes up. You change the number in A1, and A4 instantly recalculates. If you had typed =1200+150+300 instead, you would have to remember to edit that formula every time any expense changed. With cell references, the formula does the work for you.
When you copy a formula to another cell, Excel adjusts the references automatically. If you copy =A1+A2 from cell A3 down to cell A4, it becomes =A2+A3. If you copy it to the right to cell B3, it becomes =B1+B2. This is called a relative reference, and it's the default behavior. If you want a reference to stay fixed when you copy the formula, use a dollar sign: =$A$1+A2 keeps A1 locked but lets A2 adjust.
Built-in functions that do common calculations for you
Excel includes hundreds of pre-built functions that handle tasks you'd otherwise have to write out manually. A function is a named formula that takes input (called arguments) and returns a result. The syntax is always the function name followed by parentheses containing the arguments: =FUNCTIONNAME(argument1, argument2).
The most common functions are SUM, AVERAGE, and COUNT. =SUM(A1:A10) adds all numbers from A1 through A10 — much faster than typing =A1+A2+A3+A4+A5+A6+A7+A8+A9+A10. The colon between two cell references means "from this cell to that cell." =AVERAGE(A1:A10) calculates the mean of those same cells. =COUNT(A1:A10) tells you how many cells in that range contain numbers (useful if some cells are empty).
Other frequently used functions include MIN (finds the smallest value), MAX (finds the largest), and IF (performs different calculations based on a condition). =IF(A1>100, "Over budget", "Within budget") checks whether A1 is greater than 100 and displays one of two text messages depending on the result. You can look up any function by typing it into the formula bar — Excel will show you the syntax and what arguments it expects.
How to enter a formula and see it calculate
Click on the cell where you want the result to appear. Type the equals sign to start the formula. Then type the rest: cell references, operators, or function names. As you type, you'll see the formula in both the cell and in the formula bar at the top.
When you're done typing, press Enter. Excel calculates the result and displays it in the cell. The formula itself moves to the formula bar — click on the cell again to see the formula instead of the result. If you need to edit the formula, you can click in the formula bar and make changes there, or double-click the cell to edit it directly.
If Excel shows an error like #NAME?, you likely misspelled a function name or forgot the equals sign. #DIV/0! means you tried to divide by zero or by an empty cell. #REF! means the formula refers to a cell that no longer exists. These error messages are Excel's way of telling you something in the formula needs fixing.
Copying formulas to multiple cells at once
Once you've written a formula in one cell, you can copy it to other cells and Excel adjusts the references for you. Click on the cell containing the formula. Then use Ctrl+C (or Cmd+C on Mac) to copy it. Select the range where you want the formula to appear and press Ctrl+V to paste.
A faster method is to use the fill handle — the small square at the bottom-right corner of the selected cell. Click and drag it down to copy the formula to cells below, or drag it to the right to copy across. Excel adjusts the cell references as it goes. If you have a formula in A1 and drag the fill handle down to A10, each row gets its own version of the formula with the row numbers adjusted.
Be careful with absolute references when copying. If your formula includes $A$1, that cell reference stays the same no matter where you copy the formula. If it includes just A1, the reference changes relative to the new position. Understanding which cells should stay fixed and which should adjust is key to copying formulas correctly.
Common mistakes and how to fix them
Forgetting the equals sign is the most common mistake. If you type A1+B1 without the =, Excel treats it as text, not a formula. The cell displays exactly what you typed instead of calculating anything. Always start with =.
Another frequent error is using the wrong operator. Multiplication is * (asterisk), not x. Division is / (forward slash), not a backslash. Excel won't recognize x or \ as math operators and will show an error.
Referencing the wrong cells is easy to do, especially in large spreadsheets. Double-check that you're adding or multiplying the cells you actually intend to. If a formula gives you a result that seems wrong, click on the cell and look at the formula bar to verify which cells are involved. You can also click on a cell reference in the formula bar, and Excel will highlight that cell in the spreadsheet so you can see exactly what you're referencing.
Frequently Asked Questions
What's the difference between a formula and a function?
A formula is any instruction that starts with an equals sign, whether it's =A1+B1 or =SUM(A1:A10). A function is a named, pre-built formula that Excel provides. All functions are formulas, but not all formulas are functions.
Can I use a formula that references cells from a different sheet?
Yes. If you have data in Sheet1 and want to reference it from Sheet2, use the syntax =Sheet1!A1+Sheet1!B1. The exclamation mark tells Excel to look in a different sheet. You can also click on the other sheet while typing your formula, and Excel will insert the reference automatically.
Why does my formula show the formula text instead of the result?
The cell is probably formatted as text. Right-click the cell, select Format Cells, and change the format to Number or General. Then edit the formula (press F2 or double-click) and press Enter again. Excel should now calculate it.
How do I make a formula that works for some cells but not others?
Use an IF function to test a condition. =IF(A1="", "", A1+B1) adds A1 and B1 only if A1 is not empty; otherwise it shows nothing. This prevents errors when some rows have data and others don't.
Can I undo a formula if I change my mind?
Yes. Press Ctrl+Z (or Cmd+Z on Mac) to undo. You can undo multiple steps by pressing it repeatedly. If you undo too far, press Ctrl+Y to redo.