#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 117
Default Rounding

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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Rounding

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.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Rounding

Try this...

=round(a1/5, 0) * 5
--
HTH...

Jim Thomlinson


"Jase" wrote:

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.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Rounding

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.




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Rounding

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.



Jase wrote:

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.


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
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.






  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Rounding

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

Jim Thomlinson


"Jim Thomlinson" wrote:

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.




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Rounding

=MROUND(A2,5)
If it gives you a #NAME! error, look up MROUND in Excel help.
--
David Biddulph

"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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need a formula with rounding up & rounding down to the nearest . Tony Kay Excel Worksheet Functions 3 May 29th 07 11:13 PM
rounding Sam New Users to Excel 3 January 14th 07 07:23 PM
Rounding Jakobshavn Isbrae Excel Discussion (Misc queries) 4 January 11th 07 03:09 PM
rounding. Rodney New Users to Excel 6 September 26th 05 10:49 AM
Rounding Alex Martinez Excel Worksheet Functions 1 May 13th 05 06:07 AM


All times are GMT +1. The time now is 05:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"