How to round prices to end in .99 in Excel
Formula (Excel and Google Sheets)
=ROUNDUP(B2,0)-0.01Round up to the next whole number and take off a cent: =ROUNDUP(B2,0)-0.01.
- Result on the example
- one result per row in
C2, filled down toC6 - Works in
- Every current version
- Google Sheets
- Same formula
See it work
The formula is already in C2, filled down to C6. Change any input and the result updates, or edit the formula to experiment.
How it works
ROUNDUP with 0 digits moves 23.40 up to 24, and subtracting 0.01 gives 23.99. A price that already ends in .99 stays the same. A whole-dollar price like 42.00 is already "rounded up", so it becomes 41.99, a cent below the calculated price.
=ROUNDUP(B2,0)-0.01Result23.99
B2$23.40The value in B2.
ROUNDUP(B2,0)24ROUNDUP: Rounds away from zero.- number
B2$23.40 - num_digits
0
- number
ROUNDUP(B2,0)-0.0123.99The - operator subtracts.
In Google Sheets
The same formula works in Google Sheets: =ROUNDUP(B2,0)-0.01. We ran it in Google Sheets mode on the same data and it returns the same results.
Other ways to do it
Each one was run on the same example sheet.
| Formula | Result | When to use it |
|---|---|---|
| =INT(B2)+0.99 | $23.99, $8.99, $17.99…Different result | Keeps the dollars and sets the cents to .99, so a whole-dollar price goes up instead. The 42.00 backpack becomes 42.99. |
Common mistakes
- Decide what happens to whole-dollar prices: ROUNDUP gives 41.99 (below the calculated 42.00), INT(B2)+0.99 gives 42.99. Pick the rule that protects your margin.
- Rounding a price that is already a few cents above .99 (like 24.02) adds almost a dollar. Check the effect on the cheapest items.
Try it yourself
Same data, empty answer cell. Your formula is graded instantly, then re-checked on changed data, so a typed-in number won't pass.
Round prices to end in .99
C2, turn the calculated price into a price ending in .99, then fill down to C6.Questions
How do I make prices end in .95?
Use =ROUNDUP(B2+0.05,0)-0.05, which gives the next price ending in .95 at or above the calculated one.
How do I round to the nearest .99 instead of up?
Use =ROUND(B2,0)-0.01.
Checked by running on 2026-10-30: every formula and result on this page was calculated by the Spreadsheet Practice formula engine, in both Excel and Google Sheets modes.