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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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,224,827
Messages
6,181,199
Members
453,022
Latest member
RobertV1609

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