Thread: Rounding
View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default Rounding

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.



--
Biff
Microsoft Excel MVP


"Jim Thomlinson" wrote in message
...
What is the purpose to using the int function?
--
HTH...

Jim Thomlinson


"T. Valko" wrote:

Try this:

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



--
Biff
Microsoft Excel MVP


"Jase" wrote in message
...
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.