MRound Not working

Pc1x1

New Member
Joined
Apr 26, 2011
Messages
34
I am trying to round numbers up and down automatically. But I need them to round to the nearest .5. I used MRound, but the problem is in MRound .5, 74.55 rounds down to 74.5, etc. If I change it and do I round first, etc, then the others numbers are off. I just want if #.5 > Round Down, if # < .5 Then round up.

I may just have answered my own question using IF statements, but if anyone has any suggestions, please let me know.

102.90 Needs to become 103
74.55 Needs to become 75
141.75 Needs to become 142
56.39 Needs to become 56.5

But the problem I am having is how can it determine that the decimals is .5 or not. Still not getting it to work, but fairly close.
 
Last edited:

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Try this.... it works for the examples that you gave at the bottom of your post...

assume your data starts in A1

in B1 use
=CEILING(A1,0.5)

and drag down as needed
 
Upvote 0
Perfect, Thanks guys.

The only Error, I see, is

75.08, it brings up to .5 but I guess thats inevitable? IE can you put parameters so if thats low, it goes down instead?

IE. 75.08 becomes 75.5
 
Upvote 0
Maybe something like

=MROUND(B16+0.15,0.5)

The 'error' you mention in #4 appears to contradict the objective in #1
 
Upvote 0
Maybe something like

=MROUND(B16+0.15,0.5)

The 'error' you mention in #4 appears to contradict the objective in #1

Instead of 0.15, I think it should be 0.25. I could be wrong but try 0.25 if 0.15 does not work.
 
Upvote 0
It sounds like you just want to round to a multiple:

But this example seems contradictory:
74.55 Needs to become 75


It is low, why not 74.5?

If it should be 74.5 then this should do what you want:

=ROUND(A1*2,0)/2
 
Upvote 0
Choose which ever suits you.:)

Excel Workbook
ABCD
2ROUND(A4*2,0)/2 will yieldMROUND(A4+0.25,0.5) will yieldMROUND(A4+0.15,0.5) will yield
3
474.087474.574
574.3974.574.574.5
674.5574.57574.5
774.78757575
Sheet1
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

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