How to implement automatic rounding to $4.99 or $9.99?

I am looking to automatically round up cost to either $_4.99 or $_9.99.


The idea for this is if I have a cost of $83.58, I would like it rounded up to $84.99. If I have $97.99 I would like that rounded to $99.99. I would like it rounded to the nearest 4.99 or 9.99.


Is there a way to do this?




[Re-Titled by Moderator]

iMac 24″, macOS 15.4

Posted on May 1, 2025 10:25 PM

Reply
Question marked as Top-ranking reply

Posted on May 2, 2025 11:10 AM

Actually, both models have a problem -


The FLOOR() function, as written, always returns a x9.99 price (as you can see in B2 which should be 84.99, not 89.99. The correct formula would be:


=FLOOR(A2,10)+IF(MOD(FLOOR(A2,5),10)=0,4.99,9.99)



You have to drop the price to the previous $10, then add either 4.99 or 9.99.


Also, my CEILING() version has a problem with prices that are exact multiples of $5. That can be accounted for with a simple penny addition:


=CEILING(B2+0.01,5)−0.01

5 replies
Question marked as Top-ranking reply

May 2, 2025 11:10 AM in response to Camelot

Actually, both models have a problem -


The FLOOR() function, as written, always returns a x9.99 price (as you can see in B2 which should be 84.99, not 89.99. The correct formula would be:


=FLOOR(A2,10)+IF(MOD(FLOOR(A2,5),10)=0,4.99,9.99)



You have to drop the price to the previous $10, then add either 4.99 or 9.99.


Also, my CEILING() version has a problem with prices that are exact multiples of $5. That can be accounted for with a simple penny addition:


=CEILING(B2+0.01,5)−0.01

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to implement automatic rounding to $4.99 or $9.99?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.