Excel and Google Sheets how-to
Formulas not updating? Recalculate and refresh
You change a number and the total does not move. It is nearly always one of a handful of things, and each one takes seconds to fix once you know which.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Qty | Price | Total |
| 2 | Mugs | 3 | 12.00 | 36.00 |
| 3 | Coasters | 10 | 2.50 | 25.00 |
| 4 | Candles | 4 | 8.00 | 32.00 |
| 5 | Cards | 12 | 1.50 | 18.00 |
| 6 | Total | 111.00 |
Sample data. D2 holds =B2*C2, filled down to row 5, and D6 holds =SUM(D2:D5).
The test: change one number
Click B2 and change the 3 mugs to 5. D2 should go from 36 to 60 and the total in D6 from 111 to 135 the moment you press Enter. If they stay at 36 and 111, work down this page. The first two causes cover most cases.
The formula has numbers in it, not cells
Click D6 and read the formula bar. If it says
=36+25+32+18someone typed the answers in, and it will show 111 forever. A formula only updates when it points at the cells that hold the numbers:
=SUM(D2:D5)The same goes for each row: D2 should read =B2*C2, not =3*12. Retype it with cell names (or click the cells while you type), fill it down, and the test above works.
Excel is set to Manual
If the formulas point at cells and still do not move, Excel has stopped recalculating. On the Formulas tab, in the Calculation group, open Calculation Options and pick Automatic. In Excel for Windows the same choice is under File > Options > Formulas, Workbook Calculation.
Microsoft's recalculation page says that in the desktop apps this setting affects all open workbooks, so one slow file set to Manual can leave every other file you have open not updating too.
Recalculate now with F9
Leave it on Manual if a big file is slow, and recalculate when you want fresh numbers. From the same Microsoft page:
- F9 recalculates the formulas that changed since the last calculation, in all open workbooks.
- Shift+F9 does the same for the sheet you are on only.
- Ctrl+Alt+F9 recalculates every formula in all open workbooks, changed or not.
- Ctrl+Shift+Alt+F9 checks the formulas that depend on other cells, then recalculates everything. Try it when the others do not fix a number.
The Formulas tab has buttons for the first two: Calculate Now and Calculate Sheet.
The cell shows the formula, not the answer
If D2 shows the text =B2*C2 instead of 36, it is one of two things:
- Show Formulas is on. Every formula cell on the sheet shows its formula. Press Ctrl+` (the key above Tab) to switch it off, or click Show Formulas on the Formulas tab.
- The cell is formatted as Text. Only some cells show the formula. Select them, set the format to General (Ctrl+1, or the box on the Home tab that says Text), then press F2 and Enter in each one so Excel reads it again.
Both fixes are on Microsoft's broken formulas page. Also look for a space or an apostrophe typed before the = sign: either one turns the whole formula into plain text.
The total skips a number
If one row's total was pasted in as text, SUM leaves it out without telling you. With 32 in D4 stored as text, =SUM(D2:D5) gives 79 instead of 111. A number stored as text usually sits at the left of the cell, often with a small green triangle in the corner. Our page on SUM that says zero or skips numbers has the fixes.
PivotTable not updating (Excel)
A PivotTable keeps the numbers from its last refresh until you refresh it. Typing in the source data does not change it.
- One PivotTable: right-click any cell in it and choose Refresh, or click in it and press Alt+F5.
- Everything in the file: Data > Refresh All, or Ctrl+Alt+F5. Both shortcuts are on Microsoft's refresh page.
- Every time the file opens: right-click the PivotTable, choose PivotTable Options, open the Data tab and tick Refresh data when opening the file.
New rows left out after a refresh? The source range stops at the old last row. Click in the data, press Ctrl+T to make it a table, then on the PivotTable Analyze tab choose Change Data Source and type the table name (Table1, for example). From then on, rows you add to the table are picked up at the next refresh.
Excel has no setting that refreshes a PivotTable each time you type a number; that takes a macro. Refresh on open plus Ctrl+Alt+F5 covers most needs without one.
Data from another file or the web: refresh on a timer
A table that comes from a query or a data connection (Data > Get Data) refreshes on its own schedule. Open its Connection Properties (Data > Refresh All arrow > Connection Properties), and on the Usage tab tick Refresh every and type the minutes, or tick Refresh data when opening the file. Both boxes are on Microsoft's external data refresh page.
Google Sheets
Sheets recalculates on its own, so a total that will not move is usually a typed number (see above) or a number stored as text. Two settings to check:
- Calculation mode. Go to File > Settings > Calculation. Google's settings page says Manual mode only calculates when you select Calculate at the top of the screen, and that only editors can use it. Set it to Automatic.
- Formulas showing as text. View > Show > Formulas switches every cell between the formula and its answer.
Pivot tables in Sheets need no refresh: Google's pivot table page says the pivot table refreshes any time you change the source data cells. If new rows sit below the source range, edit the pivot table's data range to include them.
Watch it in 23 seconds
Templates with the math already done
Rather skip the formulas? These templates come with every formula built and checked, plus a filled-in sample.
- Inventory SpreadsheetStock tracker with a reorder list and a stock in and out log.
- Income and Expense TrackerProfit and loss with a sales tax log.
- Invoice Template and TrackerInvoices with a payment tracker for paid and overdue.
Teaching this to a class or team?
More how-tos
- Find a price by its code with XLOOKUPType a product code, get its price back from your price list. One formula, no helper columns.
- Total each category with SUMIFSAdd up all the Fuel, all the Office, all the Meals: one formula per category, and more rules when you need them.
- Check two conditions at once with IF and ANDFree shipping only when the order is 50 or more and ships in Canada: one IF, one AND, done.
- Add leading zeros to numbersType 00021 and Excel or Google Sheets shows 21, because to them it is just the number 21. Here is how to get the zeros back, and keep them.
- Fix #DIV/0! in an averageAn average of nothing is a division by zero, so AVERAGE shows #DIV/0! until the first number arrives. One IF fixes it.
- Count rows that meet two conditions with COUNTIFSHow many of Ana's deals were 500 or more? COUNTIFS answers it in one cell, and takes as many rules as you need.
- Calculate percentage changeSales went from 400 to 500. That is a 25% increase, and one short formula works it out for every row.
- Calculate years of service from a start dateAna started on 15 March 2019. How many full years has she worked? DATEDIF counts them, and the same formula works out an age from a date of birth.
- Combine first and last name into one cellFirst names in one column, last names in the next, and you need "Ana Lopez" in one cell. The & sign joins them.
- Find duplicates in a list with COUNTIFA mailing list where some people signed up twice. One formula shows how many times each email appears, so the repeats stand out.
- Split a full name into first and last nameYour list has "Ana Lopez" in one cell and you need Ana and Lopez in two. Two short formulas find the space and split there.
- Total amounts by month with SUMIFSA list of dated expenses and you want one total per month. SUMIFS adds every amount between the first and the last day of the month.
- Count working days between two datesAna is off from 1 Oct to 14 Oct. How many working days is that? NETWORKDAYS counts Monday to Friday and leaves out the weekends.
- Hide #N/A in VLOOKUP with IFERRORYour order list has a code that is not in the price list, and VLOOKUP shows #N/A. IFERROR puts your own words there instead.
- Count cells that contain textA stock list where some items have a note and most do not. One COUNTIF with an asterisk counts the notes and skips the empty cells.
- Make a running total (cumulative sum)Monthly sales in one column, the total so far in the next. One formula, filled down.
- Round to 2 decimal places, up or downA 15% discount turns 12.99 into 11.0415. ROUND makes it 11.04 and keeps your totals right to the cent. ROUNDUP and ROUNDDOWN handle the times when nearest is the wrong answer.
- How long to $1,000,000? FV and NPERPut $500 a month away at an example 7% a year. FV says what it grows to, NPER says when it passes $1,000,000. Two formulas, no calculator site.
- Why your formula gives the wrong number: the order of operationsA2 holds 10 and A3 holds 4. What does =A2-A3*2 give? It is 2, not 12. The same rule explains most formulas that look right and give the wrong number.
- Why your SUM says 0, and how to fix itThe amounts are right there in the column, and the total says 0. They look like numbers, but the sheet has them stored as text, and SUM skips text.
- Fill handle not working? Copy a formula down fastYou wrote one formula and need it in every row. Here are the quick ways to copy it down, and what to check when the fill handle will not show up or the copies come out wrong.
- Calculate hours worked from start and end timesA shift from 9:00 to 17:30 is 8.5 hours, but subtract the times and the cell shows 8:30. One small change turns it into a number you can add up and multiply by a pay rate.
- IF a cell is blank, or not blankYou want a formula to do one thing when a cell is empty and something else when it is filled. Two double quotes do the job, and they also catch the blanks ISBLANK misses.
- Standard deviation in Excel and Google SheetsTwo shops both average 40 orders a day. One sells 38 to 42 every day; the other swings from 25 to 55. The average cannot tell them apart. The standard deviation can.
- Stack several columns into one column with TOCOLNames in three columns, one for each day, and you need them in one list. One formula does it, and the list keeps up when the columns change.
- Long numbers turn into E+ or end in 0 in ExcelYou type a 12 digit order number and Excel shows 5.93774E+11. You type a 16 digit account number and the last digit turns into 0. The first one is only how the cell looks. The second is a real loss, and it has to be stopped before you type.
- Count how many times each value appears in a columnA staff list with a department on every row, and you need to know how many people are in each department. Two short formulas build the count table, and it keeps up when the list changes.
- Free pricing calculatorsPrice a job from your real costs and margin. No sign up.
- Free downloadsPractice sheets and printable pages, no email and no sign up.







