Different kind of rounding

S

Sarah_Lund

I need help with this one...

If the 3rd digit after the decimal is not a zero, I need to round up the 2nd
digit, otherwise leave the number as is
Examples:
4.240 would be 4.24
4.241 would be 4.25

I'd like to be able to do this in one step/one formula.
Any suggestions??
Thank you,
Sarah
 
J

joeu2004

If the 3rd digit after the decimal is not a zero,
I need to round up the 2nd digit, otherwise leave
the number as is
Examples:
4.240 would be 4.24
4.241 would be 4.25

Caveat emptor: it is not clear what you want to do with 4.2405, for
example. A literal interpretation would say that you want 4.24. But
perhaps you mean "if the 3rd digit after the decimal point after first
rounding to 3 decimal places". It would behoove you to test any
solution with 4.2405 to be sure it is giving you what you want.
 
R

Rick Rothstein

I am apparently missing something in the OP's question, but I would think
ROUNDUP would work directly. Doesn't...

=ROUNDUP(A20,2)

do the same thing as your formula? If not, what am I overlooking?
 

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