Rounding to nearest 9 Problem for retail

Brend2305

New Member
Joined
Mar 11, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Can anyone help with the below?

So i use the below formula for my retail pricing to either round up or down to the nearest number ending in 9.

=MAX(INT(V2/10)*10 + IF(MOD(V2,10)>=5.6,9,-1),9)

My problem is if i have a 2 digit or 1 digit number like 17, the formula rounds to 19 making my price higher than the List retail price. My question is if i have a 2 digit or 1 digit number is there an added formula i can use to say that these numbers should remain as is and not change?

Example attached
 

Attachments

  • Rounding Example.png
    Rounding Example.png
    18.9 KB · Views: 18

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Try

=IF(V2<100,V2,MAX(INT(V2/10)*10 + IF(MOD(V2,10)>=5.6,9,-1),9))
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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