The moment you write numbers in a list, your eye looks for the total. Formulas exist for exactly that: you tell the table "add up these cells" and it does the math for you, keeping the result current as the numbers change. If you have never written a formula before, don't worry, we start from scratch. And if this is your first time with tables, take a look at the Add and edit tables guide first.
=, the table treats it as a formula and does the math. If it doesn't start with =, whatever you typed stays plain text. That's the only rule.2+2 shows the text "2+2"; the cell where you typed =2+2 shows 4. Click the cell and you'll see the formula itself in the formula bar above the table, where you can edit it too.=, a calculation with ==SUM(B1:B3):) means "everything from here to there". So B1:B3 covers every cell between B1 and B3. Press Enter and B4 shows 73.=SUM( and stop, then click cell B1 and drag down to B3: the range writes itself into the formula and the cells you picked light up. Close the parenthesis, press Enter, done.#NAME? appears in the cell; select that cell and the formula bar tells you why: "Unknown function name: check the spelling (e.g. SUM)". Fix the formula and the result comes straight back.=, the formula's name, then cells inside parentheses. Below you can see at a glance what each one does.Σ menu in the toolbar writes the English name into the cell.SUMAdds up the cells you pickAVERAGEGives the average of the numbersMINFinds the smallest numberMAXFinds the largest numberMEDIANGives the middle valueROUNDRounds to the decimal place you wantABSDrops the minus signSQRTTakes the square rootPOWERRaises a number to a powerCOUNTCounts how many cells hold numbersCOUNTACounts how many cells are filledCOUNTIFCounts the ones matching a conditionSUMIFAdds up only the ones matching a conditionIFWrites one of two results based on a conditionCONCATENATEJoins pieces of text end to endLENCounts how many characters there areUPPERTurns text into upper caseLOWERTurns text into lower caseTRIMRemoves spaces at the start and endLEFTTakes characters from the startRIGHTTakes characters from the endMIDTakes a piece from the middleTODAYWrites today's dateNOWWrites the date and timeΣ (Functions) button on the right of the toolbar. Pick Sum, Average, Count, Max or Min from the menu and the formula gets written for you.=IF(B4>50, "Over", "Fine"). Decimal numbers can be written with a comma too, so that space keeps the two from getting mixed up. Working with cell addresses, that confusion never comes up anyway.Frequently asked questions
How do you write a formula?
= into a cell. Then you write the formula's name and, in parentheses, the range of cells to calculate, and press Enter, for example =SUM(B1:B3). Anything that doesn't start with = stays plain text.Do the English and localized names differ?
Do I have to type addresses by hand?
=SUM( and stop, then click the first cell and drag to the last one; the range writes itself into the formula and the cells you picked light up. Close the parenthesis, press Enter, done.My formula returned an error, what should I do?
#NAME? means the formula name is misspelled, #DIV/0! means dividing by zero, and #REF! means a row or column the formula pointed to was deleted. Select the cell to read the explanation in the formula bar; fix the formula and the result comes back.