A formula in Google Sheets starts with an equals sign and tells the spreadsheet to do math or combine data
When you type =2+2 into a cell and press Enter, Google Sheets shows you 4. That equals sign is what makes it a formula — without it, the spreadsheet treats what you type as plain text. Formulas let you add numbers, pull data from other cells, count things, find the highest or lowest value, and dozens of other operations. Once you write a formula, you can copy it down to other rows and it automatically adjusts, which saves you from typing the same calculation over and over.
The most useful formulas are the ones that reference cells instead of fixed numbers. If you write =A1+B1, the formula adds whatever is in cell A1 to whatever is in cell B1. When you copy that formula down to row 2, it becomes =A2+B2 automatically. This is how you build a spreadsheet that actually works — you set up the logic once, then let it run across hundreds of rows.
Key Takeaways
- Every formula starts with an equals sign; without it, Google Sheets treats your entry as text.
- Formulas that reference cells (like =A1+B1) automatically adjust when you copy them to new rows.
- Common functions like SUM, AVERAGE, COUNT, and IF handle most everyday spreadsheet tasks.
- The formula bar at the top shows you what formula is in the selected cell, so you can see and edit it.
- Parentheses control the order of operations — Google Sheets follows standard math rules, but you can override them with parentheses.
The anatomy of a formula: equals sign, function name, and arguments
A formula has three main parts. First is the equals sign — this tells Google Sheets you are giving it an instruction, not typing a label. Second is the function name, which is the operation you want to perform. SUM adds numbers. AVERAGE finds the middle value. COUNT counts how many cells have numbers in them. IF lets you make a decision based on a condition. Third are the arguments — the information the function needs to work. For SUM, the argument is the range of cells to add up.
Here is what this looks like in practice. If you have sales numbers in cells A1 through A10, you write =SUM(A1:A10). The colon between A1 and A10 means "all cells from A1 to A10". Google Sheets adds them all up and shows you the total. If you write =AVERAGE(A1:A10), it finds the average instead. The function name tells Google Sheets what to do, and the range in parentheses tells it which cells to do it to.
How to enter a formula and see it calculate
Click on the cell where you want the result to appear. Type the equals sign first — this is the signal that starts a formula. Then type the function name and the cells or numbers you want to use. For example, click on cell C1 and type =A1+B1. You will see the formula in both the cell and in the formula bar at the top of the screen. Press Enter, and Google Sheets calculates the result and shows it in the cell.
If you want to see the formula again after you have pressed Enter, click on the cell. The formula bar shows you exactly what formula is in that cell. This is useful when you come back to a spreadsheet weeks later and need to remember what a column is calculating. You can edit the formula right there in the formula bar — just click in it, make your changes, and press Enter again.
Using cell references so formulas adjust automatically
The real power of formulas comes from referencing cells instead of typing numbers directly. If you write =10+20, you get 30, but that formula is useless because it always gives the same answer. If you write =A1+B1, the formula uses whatever numbers are actually in those cells. When you change the number in A1, the result updates instantly.
This becomes powerful when you copy the formula down. Suppose you have a spreadsheet with product names in column A, quantities in column B, and prices in column C. You want to calculate total cost (quantity times price) in column D. Click on D1 and type =B1*C1. Press Enter. Now click on D1 again and look at the small square in the bottom right corner of the cell — that is the fill handle. Click and drag it down to D10. Google Sheets copies the formula to every row, and each one automatically adjusts: D2 becomes =B2*C2, D3 becomes =B3*C3, and so on. You have just done ten calculations with one formula.
Common functions and what they do
SUM adds up all the numbers in a range. =SUM(A1:A10) adds cells A1 through A10. AVERAGE finds the mean. =AVERAGE(A1:A10) adds them up and divides by how many cells there are. COUNT counts how many cells contain numbers (it ignores empty cells and text). =COUNT(A1:A10) tells you how many of those ten cells have numbers in them.
IF lets you make a decision. The structure is =IF(condition, value if true, value if false). For example, =IF(A1>100, "High", "Low") checks if the number in A1 is greater than 100. If it is, the cell shows "High". If it is not, the cell shows "Low". MAX finds the largest number in a range. =MAX(A1:A10) shows you the biggest number. MIN finds the smallest. LEN counts how many characters are in a text cell. =LEN(A1) tells you how many letters, numbers, and spaces are in cell A1.
How parentheses control the order of calculations
Google Sheets follows standard math rules: multiplication and division happen before addition and subtraction. If you write =2+3*4, you get 14 (not 20), because 3*4 is calculated first. When you want to change this order, use parentheses. =(2+3)*4 gives you 20, because the addition inside the parentheses happens first.
This matters in real spreadsheets. Suppose you have expenses in A1 through A5 and you want to add them up, then divide by 5 to find the average. If you write =A1+A2+A3+A4+A5/5, only A5 gets divided by 5 — the others get added to the result, which is wrong. Write =(A1+A2+A3+A4+A5)/5 instead, and the whole sum gets divided by 5. Or just use =AVERAGE(A1:A5), which does the same thing and is shorter.
Copying formulas to other cells and fixing references when you need to
When you copy a formula down or across, Google Sheets adjusts the cell references automatically. This is called a relative reference. Most of the time this is exactly what you want. Sometimes it is not. Suppose you have a tax rate in cell E1, and you want to multiply every sales amount by that rate. If you write =A1*E1 and copy it down, row 2 becomes =A2*E2 — but E2 is empty, so you get zero. You need E1 to stay the same while A1 changes to A2, A3, and so on.
To lock a cell reference so it does not change when you copy, add a dollar sign: =$E$1. Now when you copy =A1*$E$1 down, row 2 becomes =A2*$E$1 and row 3 becomes =A3*$E$1. The E1 stays locked. You can also lock just the column or just the row: =$E1 locks the column E but lets the row number change, and =E$1 locks the row but lets the column change. Most of the time you need both locked, so use =$E$1.
Troubleshooting formulas that show errors
#DIV/0! means you tried to divide by zero or by an empty cell. Check that the cell you are dividing by actually contains a number. #VALUE! means you tried to do math with text. If a cell contains the word "Sales" instead of a number, formulas that try to add it will show this error. #REF! means the formula refers to a cell that no longer exists — usually because you deleted a column or row. #NAME? means Google Sheets does not recognize the function name, usually because of a typo. =SUM works, but =SUMM does not.
The fastest way to find the problem is to click on the cell with the error and look at the formula bar. Read the formula carefully and check that all the cell references point to cells that actually contain data. If you are using a function, make sure you spelled it correctly. Google Sheets also shows a small red triangle in the corner of cells with errors — click on it and Google Sheets suggests what might be wrong.
Frequently Asked Questions
What is the difference between a formula and a function?
A formula is the whole instruction you write, starting with the equals sign. A function is a named operation that does a specific task. =SUM(A1:A10) is a formula that uses the SUM function. =A1+B1 is a formula that does not use a function — it just does addition directly.
Can I use a formula that references cells in a different sheet?
Yes. If you have a sheet named "Sales" and you want to reference cell A1 in that sheet, write =Sales!A1. The exclamation mark tells Google Sheets to look in a different sheet. If the sheet name has spaces, put it in single quotes: ='Sales Data'!A1.
How do I copy a formula to many rows at once without dragging?
Click on the cell with the formula, then press Ctrl+C (or Cmd+C on Mac) to copy it. Select the range where you want to paste — click on the first cell and drag to the last one, or click the first cell and Shift+click the last cell. Press Ctrl+V (or Cmd+V) to paste. The formula copies to every cell and adjusts automatically.
What does the #N/A error mean?
This usually means a lookup function like VLOOKUP or INDEX could not find the value you asked it to search for. Check that the value actually exists in the range you are searching, and that you spelled it exactly the same way (spaces and capitalization matter).
Can I write a formula that checks multiple conditions at once?
Yes, using AND and OR. =IF(AND(A1>100, B1>50), "Yes", "No") checks if A1 is greater than 100 AND B1 is greater than 50. =IF(OR(A1>100, B1>50), "Yes", "No") checks if either one is true. You can nest these to build complex logic.