Start with the equals sign, then type what you want to calculate

Every Excel formula begins with an equals sign. Type = into a cell, then write the calculation or instruction you want Excel to perform. Excel reads what comes after the equals sign as a formula, not as text. Without it, Excel treats your entry as plain text and does nothing with it.

The simplest formulas do basic math. Type =5+3 into a cell and press Enter — Excel shows 8. Type =10*4 and it shows 40. You can also reference other cells instead of typing numbers directly. If cell A1 contains 5 and cell B1 contains 3, typing =A1+B3 adds those two values together.

Excel recalculates automatically whenever you change a number in a cell that the formula references. If you change A1 from 5 to 10, the result updates instantly. This is why formulas are more useful than typing the answer yourself — the spreadsheet stays correct even when your data changes.

Key Takeaways

  • Every formula starts with an equals sign, followed by the calculation or function you want Excel to perform.
  • You can reference cells by their letter and number (like A1 or B5) instead of typing numbers directly, so the formula updates when those cells change.
  • Common functions like SUM, AVERAGE, and COUNT let you perform calculations on groups of cells without typing each one individually.
  • When you copy a formula to another cell, Excel automatically adjusts the cell references so the formula still makes sense in its new location.
  • Parentheses control the order in which Excel performs calculations, just like in math class.

Reference cells instead of typing numbers

The real power of formulas comes from referencing cells. Instead of typing =5+3, type =A1+B1. Now the formula pulls the values from cells A1 and B1. If someone changes the number in A1, the formula result changes automatically without you touching the formula itself.

You can reference a single cell, a range of cells, or cells from different parts of the spreadsheet. A range uses a colon: =SUM(A1:A10) adds all the numbers from A1 through A10. You can also mix single cells and ranges: =A1+SUM(B2:B5) adds the value in A1 to the sum of B2 through B5.

When you copy a formula to a new cell, Excel adjusts the references automatically. If you write =A1+B1 in cell C1 and copy it down to C2, the formula becomes =A2+B2. Excel assumes you want the same pattern one row down. This saves you from rewriting the formula for every row.

Use built-in functions for common tasks

Excel includes functions — pre-built formulas that perform specific tasks. Instead of typing =A1+A2+A3+A4+A5, you can type =SUM(A1:A5). Both give the same result, but the function is shorter and clearer.

Common functions include SUM (adds numbers), AVERAGE (finds the middle value), COUNT (counts how many cells contain numbers), and MAX (finds the largest number). You type the function name, then put the cells you want to work with inside parentheses. =AVERAGE(B2:B10) finds the average of the numbers in B2 through B10.

Other useful functions include MIN (finds the smallest number), IF (performs different calculations based on a condition), and CONCATENATE (joins text from multiple cells). Excel has hundreds of functions, but most everyday spreadsheets use only a handful. You can search for a function by what you want to do — Excel's function wizard helps you find the right one.

Control the order of calculations with parentheses

Excel follows the standard order of operations: multiplication and division before addition and subtraction. If you type =2+3*4, Excel calculates 3*4 first (which equals 12), then adds 2, giving you 14. If you want to add 2+3 first, then multiply by 4, use parentheses: =(2+3)*4 gives you 20.

Parentheses always take priority. Excel calculates what is inside parentheses first, then works outward. You can nest parentheses inside each other: =((A1+A2)*B1)/C1 adds A1 and A2, multiplies the result by B1, then divides by C1. When formulas get complex, parentheses make it clear what you want Excel to do.

If you are unsure about the order, use parentheses anyway. They do not hurt, and they make your formula easier to read later. A formula that is clear to you now might confuse you six months from now — parentheses help prevent mistakes.

Copy formulas across rows and columns

Once you write a formula in one cell, you can copy it to other cells. Click the cell with the formula, then copy it (Ctrl+C on Windows, Cmd+C on Mac). Select the range where you want the formula to go and paste (Ctrl+V or Cmd+V). Excel adjusts the cell references automatically for each new location.

You can also drag the formula down or across. Click the cell with the formula, then grab the small square in the bottom-right corner of the cell and drag it to the cells below or to the right. Excel fills in the formula and adjusts the references as it goes. This is faster than copy-and-paste for filling a column or row.

If you want the formula to reference the same cell no matter where you copy it, use an absolute reference. Type a dollar sign before the column letter and row number: =$A$1. When you copy =A1+$B$1 to another cell, the A1 reference changes but the $B$1 stays the same. This is useful when one cell contains a value you want to use in multiple formulas.

Check your formula for errors

If a formula does not work, Excel shows an error code. #NAME? means Excel does not recognize a word in your formula — you may have misspelled a function name. #VALUE! means you are trying to do math with text instead of numbers. #DIV/0! means you are dividing by zero, which is impossible.

Click the cell with the error and look at the formula bar at the top of the screen. The formula bar shows exactly what you typed. Check for typos, missing parentheses, or cell references that point to the wrong place. A common mistake is forgetting the equals sign at the start — Excel treats it as text instead of a formula.

If you cannot spot the problem, try breaking the formula into smaller pieces. Instead of =A1+B1*C1/D1, test =B1*C1 first to make sure that part works. Once you know that part is correct, build the formula back up. This makes it easier to find where the error is.

Common formula patterns you will use

A running total adds up values as you go down a column. In C1, type =A1. In C2, type =C1+A2. Copy C2 down, and each cell adds the previous total to the current row's value. By the bottom, you have the sum of all rows above.

A percentage calculation divides one number by another and multiplies by 100. Type =A1/B1*100 to find what percentage A1 is of B1. Or use =(A1-B1)/B1*100 to find the percent change from B1 to A1.

A conditional calculation uses the IF function to do different things based on a condition. Type =IF(A1>10,"Yes","No") to check if A1 is greater than 10. If it is, the cell shows "Yes". If not, it shows "No". You can also use IF to calculate different values: =IF(A1>10,A1*2,A1) multiplies A1 by 2 if it is greater than 10, otherwise just shows A1.

Frequently Asked Questions

What is the difference between a formula and a function?

A formula is any calculation you write in Excel that starts with an equals sign. A function is a pre-built formula that Excel provides. All functions are formulas, but not all formulas are functions. =A1+B1 is a formula but not a function. =SUM(A1:A10) is both a formula and a function.

Can I use a formula to combine text from different cells?

Yes, use the CONCATENATE function or the ampersand symbol. =A1&" "&B1 joins the text in A1, a space, and the text in B1. =CONCATENATE(A1,B1) does the same thing without the space. This is useful for combining first and last names or building full addresses from separate cells.

What happens if I delete a cell that a formula references?

Excel shows a #REF! error in any formula that referenced the deleted cell. The formula cannot find the value it was looking for. You either need to undo the deletion, rewrite the formula to reference a different cell, or delete the formula itself if it is no longer needed.

Can I see all the formulas in my spreadsheet at once?

Yes. Press Ctrl+` (grave accent, the key above Tab) on Windows, or Cmd+` on Mac. Excel switches to formula view, showing the formula in each cell instead of the result. Press the same keys again to switch back to normal view. This is helpful for checking your work or finding errors.

How do I make a formula that works across multiple sheets?

Reference the sheet name followed by an exclamation point and the cell. Type =Sheet2!A1+Sheet3!B5 to add a value from Sheet2 to a value from Sheet3. If the sheet name has a space, put it in single quotes: ='Sales Data'!A1. This lets you build formulas that pull data from anywhere in your workbook.