Rounding results by ranges

G

Guest

I need help in coming up with a formula to apply rounding depending on the
value ranges as follows:

xx.00 - do not apply round formula

xx.01 to xx.25, then round to xx.25
xx.26 to xx.50, then round to xx.50
xx.51 to xx.75, then round to xx.75
xx.76 to xx.99, then add +1 to xx.

For example, if 33.23, the result should be 33.25; if 33.72, the result
should be 33.75; if 33.94, then the result should be 34.00.
 
N

Niek Otten

If you really mean round, so xx.12 rounds to xx.00:
=mround(A1,.25)
But if you mean round up, so xx.12 becomes xx.25:
=CEILING(A1,.25)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

|I need help in coming up with a formula to apply rounding depending on the
| value ranges as follows:
|
| xx.00 - do not apply round formula
|
| xx.01 to xx.25, then round to xx.25
| xx.26 to xx.50, then round to xx.50
| xx.51 to xx.75, then round to xx.75
| xx.76 to xx.99, then add +1 to xx.
|
| For example, if 33.23, the result should be 33.25; if 33.72, the result
| should be 33.75; if 33.94, then the result should be 34.00.
 
N

Niek Otten

I should have added:

From Excel Help:

If this function is not available, and returns the #NAME? error, install and load the Analysis ToolPak add-in.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

| If you really mean round, so xx.12 rounds to xx.00:
| =mround(A1,.25)
| But if you mean round up, so xx.12 becomes xx.25:
| =CEILING(A1,.25)
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
||I need help in coming up with a formula to apply rounding depending on the
|| value ranges as follows:
||
|| xx.00 - do not apply round formula
||
|| xx.01 to xx.25, then round to xx.25
|| xx.26 to xx.50, then round to xx.50
|| xx.51 to xx.75, then round to xx.75
|| xx.76 to xx.99, then add +1 to xx.
||
|| For example, if 33.23, the result should be 33.25; if 33.72, the result
|| should be 33.75; if 33.94, then the result should be 34.00.
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top