Asking for Formula Help

ChrisHockley

New Member
Joined
Feb 6, 2017
Messages
41
Guys, I'm always amazed at how much help everyone is here and how experienced those that are here actually are!

I'm trying to round numbers with two decimal places to one decimal place.

Here are the parameters:
1. Anything 3.54 and below should be rounded up or down to the nearest tenth or 0.1
2. Anything between 3.54 and 28.34 should be rounded up or down to the nearest 0.5
3. Anything 28.35 or above should be rounded up or down to the nearest 1.0

Can this be done in one formula so that I don't have to copy and paste multiple versions over thousands of lines?

Thanks in advance!
 
Try:
Excel Formula:
=MROUND(D296,XLOOKUP(D296,{0,3.54,28.34},{0.1,0.5,1},,-1))
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,225,490
Messages
6,185,288
Members
453,285
Latest member
Wullay

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