Round Down to the nearest multiple

X

Xhawk57

could anyone help me out with a formula similar to MROUND but that always
rounds down? for example I have in cell A1 5.99 and I want to round this to
the nearest LOWER 1/8th. So as where MROUND would give me 6.00, i need this
formula to round to 5.875.

any help is greatly appreciated!
 
D

David Biddulph

But with the warning that with Biff's formula you'll get a #NUM! error if A1
is negative.

=FLOOR(A1,0.125*SIGN(A1)) will work, if rounding "down" is regarded as
towards zero.
=IF(A1>0,FLOOR(A1,0.125),CEILING(A1,-0.125)) if "down" is towards minus
infinity.
 
R

Ron Rosenfeld

could anyone help me out with a formula similar to MROUND but that always
rounds down? for example I have in cell A1 5.99 and I want to round this to
the nearest LOWER 1/8th. So as where MROUND would give me 6.00, i need this
formula to round to 5.875.

any help is greatly appreciated!

If by "ROUNDDOWN" you mean round closer to zero, then:

=ROUNDDOWN(A1*8,0)/8

--ron
 

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