Need formula to round number up to always end in X.X9

H

Heather

I have a spreadsheet with prices. If the price is 2.55, I want the formula
to round it up to 2.59. If it is 3.01, I want the formula to round it to
3.09. The last digit always needs to be a 9, and it always needs to round UP
to the next .x9. Any ideas?
 
D

Dave Peterson

You could use this to round down to the nearest dime:
=FLOOR(A1,0.1)

Then add 9 cents
=FLOOR(A1,0.1)+0.09
 
B

bapeltzer

=ROUNDUP(A1+0.01,1)-0.01

This adds a penny, rounds up to the next dime, then subtracts a penny. If
you don't first add the penny, you could wind up lowering the input value.
Ex: 2.60 would round to 2.60 and then you'd deduct the penny to get 2.59.
 
R

Ron Rosenfeld

I have a spreadsheet with prices. If the price is 2.55, I want the formula
to round it up to 2.59. If it is 3.01, I want the formula to round it to
3.09. The last digit always needs to be a 9, and it always needs to round UP
to the next .x9. Any ideas?

=CEILING(A1+0.01,0.1)-0.01
--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top