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

Every formula in Google Sheets begins with an equals sign (=). After the equals sign, you type the calculation or instruction you want the spreadsheet to perform. Google Sheets then reads that formula and shows you the result in the cell.

The simplest formulas do basic math. Type =2+2 in a cell and Google Sheets displays 4. Type =10-3 and it displays 7. But the real power comes when you reference cells instead of typing numbers directly. If cell A1 contains 10 and cell B1 contains 3, you can type =A1-B1 in cell C1, and Google Sheets will automatically subtract B1 from A1 and show the result.

When you change the number in A1 or B1, the formula in C1 updates instantly. That's why formulas are more useful than typing the answer by hand — they recalculate whenever your data changes.

Key Takeaways

  • All formulas start with an equals sign, followed by the calculation or function you want to perform.
  • Reference cells by their letter and number (like A1, B2, C3) instead of typing numbers directly, so the formula updates when your data changes.
  • Use built-in functions like SUM, AVERAGE, and COUNT to perform common calculations on groups of cells.
  • Drag the small square at the bottom right of a cell to copy a formula down or across multiple cells automatically.
  • Click the cell containing a formula to see the full formula in the formula bar at the top of the screen.

Reference cells and ranges to make formulas that update automatically

Instead of typing individual numbers into a formula, reference the cells that contain those numbers. A cell reference is the letter of the column followed by the number of the row — A1, B5, C10, and so on. When you reference a cell, Google Sheets uses whatever number is currently in that cell.

A range is a group of cells in a row, column, or rectangle. You write a range by typing the first cell, a colon, and the last cell. For example, A1:A10 means all cells from A1 through A10 in column A. B2:D5 means all cells in the rectangle from B2 to D5. Ranges are useful when you want a formula to work with many cells at once.

If you have sales numbers in cells A1 through A12 and you want to add them all up, you could type =A1+A2+A3+A4+A5+A6+A7+A8+A9+A10+A11+A12, but that's tedious and error-prone. Instead, use a range: =SUM(A1:A12). This does the same thing in one short formula.

Use common functions to perform calculations on groups of cells

A function is a built-in calculation that Google Sheets already knows how to do. You type the function name, then put the cells or range you want to calculate inside parentheses. Google Sheets has dozens of functions, but a few are used constantly.

SUM adds up all the numbers in a range. Type =SUM(A1:A10) to add cells A1 through A10. AVERAGE finds the middle value. Type =AVERAGE(B2:B20) to find the average of those cells. COUNT counts how many cells in a range contain numbers (it ignores empty cells and text). Type =COUNT(C1:C50) to count the numbers in that range.

MAX finds the largest number in a range, and MIN finds the smallest. CONCATENATE joins text from multiple cells into one. If A1 contains "John" and B1 contains "Smith", typing =CONCATENATE(A1," ",B1) produces "John Smith" in the cell where you put the formula.

You can also combine functions. For example, =AVERAGE(A1:A10) finds the average of ten cells, but =AVERAGE(A1:A10,C1:C10) finds the average of twenty cells across two different ranges. The comma tells Google Sheets to include both ranges in the calculation.

Copy formulas down or across by dragging the fill handle

Once you've created a formula in one cell, you often need the same formula in many other cells. Google Sheets makes this fast with the fill handle — a small square at the bottom right corner of any selected cell.

Click the cell containing your formula. You'll see a small blue square in the bottom right corner of that cell. Click and drag that square down to copy the formula to cells below, or drag it to the right to copy it to cells to the side. As you drag, Google Sheets automatically adjusts the cell references in the formula for each row or column.

For example, if cell C1 contains =A1+B1 and you drag the fill handle down to C5, Google Sheets creates =A2+B2 in C2, =A3+B3 in C3, and so on. Each formula adjusts to match its row. This saves you from typing the same formula over and over.

If you want to copy a formula to many cells at once, you can also select the cell with the formula, then select the range where you want it to go, and press Ctrl+D (on Windows) or Cmd+D (on Mac). Google Sheets fills the entire range with the formula, adjusting references as it goes.

Use absolute references when you want a cell reference to stay the same

Normally, when you copy a formula, Google Sheets adjusts the cell references automatically. Sometimes you want a reference to stay the same no matter where you copy the formula. This is called an absolute reference, and you create it by adding a dollar sign before the column letter and row number.

For example, imagine cell E1 contains a tax rate of 0.08 (eight percent), and you want to calculate tax for multiple items in column D. In cell F2, you type =D2*$E$1. The dollar signs tell Google Sheets to always use E1, even when you copy the formula down. When you copy this formula to F3, it becomes =D3*$E$1 — the D reference changes to D3, but the E1 reference stays locked to E1.

You can also make just the column or just the row absolute. $E1 locks the column but lets the row change. E$1 locks the row but lets the column change. Most of the time you'll use $E$1 to lock both, but these partial locks are useful when you're copying formulas in both directions at once.

Check your formula in the formula bar and fix errors

When you click on any cell containing a formula, the complete formula appears in the formula bar at the top of the screen, just below the toolbar. This is where you can see exactly what your formula says and edit it if something is wrong.

If a cell shows #ERROR!, #DIV/0!, #N/A, or another error message, click the cell and look at the formula bar to see what went wrong. #DIV/0! means you tried to divide by zero or by an empty cell. #N/A usually means a lookup function couldn't find what it was looking for. #ERROR! often means you typed the function name wrong or used the wrong syntax.

You can edit a formula by clicking in the formula bar and making changes, then pressing Enter. Google Sheets will recalculate the result. If you want to undo a change, press Ctrl+Z (on Windows) or Cmd+Z (on Mac) right away.

Combine multiple functions and operations in one formula

Formulas can be as simple or as complex as you need. You can combine multiple functions and operations in a single formula to perform sophisticated calculations.

For example, =SUM(A1:A10)*1.1 adds up cells A1 through A10, then multiplies the result by 1.1 (a 10 percent increase). =IF(AVERAGE(B1:B5)>80,"Pass","Fail") calculates the average of five cells and displays "Pass" if it's above 80 or "Fail" if it's not. The IF function lets you make a formula that does different things based on whether a condition is true or false.

When you combine operations, Google Sheets follows the standard order of operations: multiplication and division happen before addition and subtraction. If you need to change that order, use parentheses. =2+3*4 equals 14 (multiply 3 and 4 first, then add 2), but =(2+3)*4 equals 20 (add 2 and 3 first, then multiply by 4).

Frequently Asked Questions

What's the difference between a formula and a function?

A formula is any calculation you type into a cell that starts with an equals sign. A function is a named calculation that Google Sheets already knows how to do, like SUM or AVERAGE. All functions are formulas, but not all formulas use functions — you can write a formula like =A1+B1 without using any function at all.

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

Yes. Use the CONCATENATE function or the ampersand (&) symbol. =CONCATENATE(A1,B1) joins the text in A1 and B1 with no space between them. =A1&" "&B1 does the same thing but adds a space in the middle. The ampersand method is shorter and works the same way.

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 "Automatic". Then press Enter. If the formula still shows as text, delete it and retype it — sometimes Google Sheets needs you to re-enter it after changing the format.

Can I copy a formula from one sheet to another sheet in the same spreadsheet?

Yes. Copy the cell with the formula (Ctrl+C or Cmd+C), go to the other sheet, click where you want it, and paste (Ctrl+V or Cmd+V). The formula will work the same way. If you want to reference a cell in a different sheet, type the sheet name followed by an exclamation point and the cell reference, like =Sheet2!A1+B1.

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

The formula will show a #REF! error because it can no longer find the cell it was supposed to use. You'll need to fix the formula by editing it to reference a different cell or by undoing the deletion if you deleted it by mistake.