Rounding in Excel

G

Guest

One cell in an Excell spreadsheet contains a mathematical formula and the
answer is always a decimal out to at least 6 places. I need to program that
cell so that it will round as follows: If the 6th decimal place number is 5
or less, round down to 5 decimal places. If the 6th place number is 6 or
more, round up to 5 decimal places. Here's an example. Let's say the
formual results in .005395833. I need it to round to .00539. However, if
the formula results in .00626639, I need it to round to .00627
 
B

Bob Phillips

=ROUND(A21-0.000001,5)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
G

Guest

Thanks, Bob. That's exactly what I needed. I think you just became my new
best friednd!!!!
 

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

Similar Threads


Top