Formula Rounding a number when subject number is less than, between, greater than

HunterLynn

New Member
Joined
Mar 9, 2011
Messages
2
I am looking to create a formula that will do the following:

Round a number (qty) to a particular decimal if the number (qty) falls into the following criteria, less than $10 per unit (rounded to 1.0), between $10-$100 per unit (rounded to 0.1), over $100 per unit (rounded to 0.01).

Ex:

15.4 qty $13.09 per unit

15.4 would be rounded to 15 because the per unit cost is $13.09.

I can create a formula for the rounding, a formula for a less than or greater than, but not the between and I don't know how to combine the two requests.

Thanks for any help.:confused:
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
between $10-$100 per unit (rounded to 0.1),
Wouldn't 15.4 remain as is, because 13.09 is between 10 and 100?
 
Upvote 0
Thanks Mancemonster... with one small tweek (just to suit my numbers) all is well in the rounding household! Thank you Thank you Thank you! I LOVE THIS PLACE!
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,916
Members
452,949
Latest member
beartooth91

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