Rounding

J

Jase

I am looking for a rounding function that for a given set up number will
round each number to the nearest 5 increment. i.e. 1142.68,1268.05,1298.22 i
would like rounded to 1140,1270 and 1300. I tried the =round() function but
that just took off the decimals.
 
D

Dave Peterson

Just a question/clarification...

Did you really want 1142.68 to round down to 1140?

Or did you want it to round up to 1145.

There's a difference in what Biff and Jim suggested.
 
T

T. Valko

1142.68...would like rounded to 1140

=ROUND(A1/5,0)*5 = 1145

=ROUND(INT(A1)/5,0)*5 = 1140

I wan't sure how they wanted to treat the original value, either drop the
decimal or round to the nearest integer. If you round to the nearest int
then 1142.68 = 1143 rounded to the nearest 5 = 1145.

So, if they *want* 1140 then you have to drop the decimal.
 
J

Jim Thomlinson

Ding! I figured it out. I didn't notice that 1142.68 rounded down to 1140.
Dave's post clued me in to it...
 

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