Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 328
Default Rounding to the nearest 5

I need to round a group of numbers to the nearest 5...like 63 would be 65, 68
would be 70, 51 would be 50, etc. Is there a formula for this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default Rounding to the nearest 5

rmound should do it (eg =mround(63,5) )

"Lisa" wrote:

I need to round a group of numbers to the nearest 5...like 63 would be 65, 68
would be 70, 51 would be 50, etc. Is there a formula for this?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default Rounding to the nearest 5

The formula's okay, but the verbiage isn't... the function is mround (sorry!)

"bpeltzer" wrote:

rmound should do it (eg =mround(63,5) )

"Lisa" wrote:

I need to round a group of numbers to the nearest 5...like 63 would be 65, 68
would be 70, 51 would be 50, etc. Is there a formula for this?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 328
Default Rounding to the nearest 5

If I have 100 different numbers, that will be very time consuming - unless I
am missing something. Is there a function that will recognize any number
and decide that it should be rounded to the nearest 5?

"bpeltzer" wrote:

rmound should do it (eg =mround(63,5) )

"Lisa" wrote:

I need to round a group of numbers to the nearest 5...like 63 would be 65, 68
would be 70, 51 would be 50, etc. Is there a formula for this?

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

No there is no way to just have the entire sheet round all of the numbers to
the nearest 5. That being said you can just use cell references within the
formula so the amount of typeing should be minimal.

=mround(A1, 5)
where the cell you want rounded is in cell A1

Note that the above formula only works if you have the analysis toolpack
installed. If you try to use this or send it to someone who desn not have the
toolpack installed you will get errors. If that is a consideration then this
formula will work better

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

Jim Thomlinson


"Lisa" wrote:

If I have 100 different numbers, that will be very time consuming - unless I
am missing something. Is there a function that will recognize any number
and decide that it should be rounded to the nearest 5?

"bpeltzer" wrote:

rmound should do it (eg =mround(63,5) )

"Lisa" wrote:

I need to round a group of numbers to the nearest 5...like 63 would be 65, 68
would be 70, 51 would be 50, etc. Is there a formula for this?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Rounding to the nearest 5

A macro?

Sub roundto()
For Each c In Range("c2:c12")
If IsNumeric(c) Then c.Value = Round(c / 5, 0) * 5
Next
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Lisa" wrote in message
...
I need to round a group of numbers to the nearest 5...like 63 would be 65,
68
would be 70, 51 would be 50, etc. Is there a formula for this?


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
Rounding up to nearest 500 Heather Excel Discussion (Misc queries) 9 April 3rd 23 10:41 AM
Rounding to the nearest 9th Corby Excel Discussion (Misc queries) 16 November 13th 07 10:28 AM
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 to the Nearest Eighth L.sean9 Excel Discussion (Misc queries) 4 June 23rd 06 12:00 AM
Rounding to Nearest 250 Scott G Excel Worksheet Functions 6 February 21st 06 04:12 PM


All times are GMT +1. The time now is 05:04 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"