One click to round the number to 100s ceiling

kashifjillani

New Member
Joined
Jul 26, 2011
Messages
47
Hello Expert fellows,

I am trying to round series of numbers to ceiling by 100.

Is there some one click solution to select the required cells and just do it.

Regards,
:rolleyes:
Kashif
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
is this what you are asking for?

Code:
Sub CeilIt()
Dim Cell As Range
    For Each Cell In Selection
        If IsNumeric(Cell) Then
            Cell = WorksheetFunction.Ceiling(Cell, 100)
        End If
    Next
End Sub
 
Upvote 0
is this what you are asking for?

Code:
Sub CeilIt()
Dim Cell As Range
    For Each Cell In Selection
        If IsNumeric(Cell) Then
            Cell = WorksheetFunction.Ceiling(Cell, 100)
        End If
    Next
End Sub


Lovely Tweedle ;),

So kind of you for solving this problem.

fond regards,
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top