Excel and Google Sheets how-to
Round to 2 decimal places
A 15% discount turns 12.99 into 11.0415. ROUND makes it 11.04 and keeps your totals right to the cent.
| 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.
Always up or always down
=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).
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.
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.
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.
- Free pricing calculatorsPrice a job from your real costs and margin. No sign up.






