process order with IF statement

R

rebecca

I'm using the following to round to the nearest quarter UNLESS the
number is under 0.25, then it should display the actual number:

=IF((B49/173)< 0.25,ROUND((B49/173)/0.25,0)*0.25,B49/173)

If I substitute a simpler condition, the logic works. I'm thinking
this is a mathmatical order of events problem --

Any solutions????

Thanks
 
D

David Biddulph

I think your formula is doing the opposite of what you described.

=IF(B49/173< 0.25,B49/173,ROUND((B49/173)/0.25,0)*0.25)
or
=IF(B49/173< 0.25,B49/173,MROUND(B49/173,0.25))

If you have trouble with MROUND, look it up in Excel help.
 

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