How can I round prices in Excel?
December 20, 2007 3:08 PM
Subscribe
In Excel 2007, I need advice on how to round a series of prices to either a $0.50 ending, or a $0.95 ending.
The first digit or two (the dollars) of the price will vary. The rounding should only occur in the last two digits (the cents).
Prices from $X.00 to $X.49, round up to $X.50.
Prices from $X.51 to $X.94, round up to $X.95.
Prices from $X.96 to $X.99, round down to $X.95.
I was thinking an If Then statement, but not sure how to deal with the differing dollar part of the price.
I'm thinking this is probably easy, and I am just missing something.
Any advice will be greatly appreciated.
posted by Futurehouse to computers & internet (10 comments total)
"if (value <>= *.00)
then (whatever)"
(yes, that was C++. Kinda)
I don't know if there's a way to do that, but it seems like you'd be able to say " *.50" to mean "anything ending in .50".>
posted by DMan at 3:22 PM on December 20, 2007