Excel and Google Sheets how-to
Round to 2 decimal places, up or down
A 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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Price | 15% off | Rounded |
| 2 | Mug | 12.99 | 11.0415 | 11.04 |
| 3 | Pen | 1.49 | 1.2665 | 1.27 |
| 4 | Notebook | 4.75 | 4.0375 | 4.04 |
| 5 | Tape | 2.99 | 2.5415 | 2.54 |
| 6 | Folder | 0.89 | 0.7565 | 0.76 |
Sample data. Prices in B, the price after 15% off in C (=B2*0.85), rounded in D.
The formula
Click D2 and type:
=ROUND(C2,2)D2 shows 11.04. Fill it down: the pen becomes 1.27 and the notebook 4.04.
- C2 is the number to round.
- 2 is how many decimal places to keep.
You can round in the same step as the math: =ROUND(B2*0.85,2) gives 11.04 straight from the price.
Rounding is not the same as hiding decimals
The decimal buttons (Decrease Decimal on the Home tab in Excel, "Decrease decimal places" on the Google Sheets toolbar) only change how a number looks. C2 still holds 11.0415, and totals use the full number. Add up column C:
=SUM(C2:C6)The real total is 19.6435, so with 2 decimals showing it reads 19.64, while the five prices you can see in C add up to 19.65. Total the rounded column instead and it matches:
=SUM(D2:D6)That gives 19.65. On invoices and price lists, round each line with ROUND first, then add.
ROUNDUP: how many boxes do you need?
When you cannot have part of something, round up. In a new sheet, put 53 mugs in B2 and 12, the number that fits in one box, in B3:
=ROUNDUP(B2/B3,0)gives 5 boxes. B2/B3 on its own is 4.42, and ROUND turns that into 4, which leaves 5 mugs with nowhere to go. ROUNDUP with 0 decimals always goes up to the next whole number, but an exact fit stays as it is: 48 mugs still give 4 boxes.
The same idea plans tables for a party, 100 guests at 8 a table:
=ROUNDUP(100/8,0)gives 13 tables, and 1,200 square feet of wall at 350 square feet a can needs =ROUNDUP(1200/350,0): 4 cans.
ROUNDDOWN: how many can you afford?
When only whole items count and going over is not allowed, round down. Put a budget of 50 in B2 and the price of one item, 7.50, in B3:
=ROUNDDOWN(B2/B3,0)gives 6. B2/B3 is 6.67, and ROUND says 7, but 7 cost 52.50: over budget. Six cost 45.00. To see what is left over:
=B2-ROUNDDOWN(B2/B3,0)*B3gives 5.00. ROUNDDOWN also counts full boxes: =ROUNDDOWN(53/12,0) gives 4 full boxes, with the other 5 mugs in a fifth, part-full one.
=INT(B2/B3) gives the same 6 for positive numbers. Below zero they differ: =ROUNDDOWN(-6.67,0) gives -6 and =INT(-6.67) gives -7, because INT always goes down to the next lower number.
ROUNDUP and ROUNDDOWN to the cent
=ROUNDUP(C2,2)gives 11.05: any extra amount goes up to the next cent. ROUNDDOWN cuts the extra off:
=ROUNDDOWN(C3,2)turns 1.2665 into 1.26. With negative numbers, ROUNDDOWN in Excel moves toward zero and ROUNDUP away from it: -2.346 becomes -2.34 with ROUNDDOWN and -2.35 with ROUNDUP (ROUND also gives -2.35).
Which one to use
- ROUND for money and totals: the nearest value, so each line and the total agree to the cent.
- ROUNDUP for anything you need enough of: boxes, tables, cans of paint, trips, staff on a shift.
- ROUNDDOWN for what fits or what you can afford: full boxes, items inside a budget, bows from a roll of ribbon.
All three take the same two parts: the number, then how many decimal places to keep. Use 2 for cents and 0 for whole numbers.
Whole numbers, tens and nickels
The second number can be 0 or negative:
=ROUND(C2,0)gives 11, and =ROUND(C2,-1) rounds to the nearest ten: 10. To round to the nearest 0.05, for cash prices without pennies, use MROUND:
=MROUND(C2,0.05)That gives 11.05. For prices that end in .99, round up to the next whole number and take off a cent:
=ROUNDUP(C2,0)-0.01which gives 11.99.
Show 2 decimals as text
For a label or a sentence, TEXT returns the number with exactly 2 decimals:
=TEXT(C2,"0.00")That gives 11.04, but as text, so SUM leaves it out. Use ROUND for numbers you calculate with and TEXT for what you join into words:
="Sale price: "&TEXT(C2,"0.00")gives Sale price: 11.04. ROUND, ROUNDUP, ROUNDDOWN, MROUND and TEXT work in every current version of Excel and in Google Sheets.
Free practice sheet
Try all three on everyday jobs: a total that is a cent off, boxes, party tables and paint, and a gift budget. Each tab has yellow cells to fill in and a Check column that says Correct or Try again as you type, plus an Answers tab. One Excel file that opens in Google Sheets too. Free, no sign up. Sample data.
Download the practice sheet (.xlsx, 11 KB)
Watch them, 28 seconds or less each
ROUND: a total that is a cent off (28 s)
ROUNDUP: how many boxes (25 s)
ROUNDDOWN: stay on budget (25 s)
Templates with the math already done
Rather skip the formulas? These templates come with every formula built and checked, plus a filled-in sample.
- Handmade Product Pricing CalculatorMaterials, time and marketplace fees in, a price that covers them out.
- Invoice Template and TrackerPick an invoice number and a print-ready invoice fills itself in.
- Income and Expense TrackerProfit and loss with a sales tax log.
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.
- 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.
- Formulas not updating? Recalculate and refreshYou 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.
- 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.
- Freeze rows and columns so the headers stay on screenMonths across the top, names down the side, and once you scroll a little both slide away and you lose track of whose row you are reading. Freezing keeps them on screen while the rest of the sheet moves.
- Highlight a whole row with a conditional formatting formulaAn order list where you want every late order to stand out, the whole row and not just the Status cell. One rule with a short formula does it, and it keeps working as statuses change.
- Remove extra spaces in Excel and Google Sheets with TRIMNames that will not sort right, a VLOOKUP that says #N/A for a code you can see in the list, two cells that look the same but do not match: a space you cannot see is often the cause. TRIM fixes most of them, and one more step fixes the rest.
- Create a drop-down list in Excel and Google SheetsA Status column where one person types Paid, another types payed and a third types Done is hard to count or filter. A drop-down list lets people pick from your choices instead, and it takes a minute to set up.
- Check if a cell contains a word in Excel and Google SheetsAn item list where you want every row with pen in it marked, added up or pulled out. =A2="pen" only finds a cell that is exactly pen, so the work goes to SEARCH, which looks inside the text.
- Take the first, last or middle characters from a cellA SKU like MG-012-RED packs three facts into one cell: the product type, how many come in a box and the colour. LEFT, RIGHT and MID take each piece out by its position.
- 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.







