Multiple Condition rounding functions

Andrian2712

New Member
Joined
Nov 17, 2023
Messages
6
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Platform
  1. Windows
Hello, i got a little problem to my rounding function, i got an example
Aaron = 120,200
Bella = 120,350
Charlie = 120,670
Dean = 120,880

i wanted to round to
Aaron = 120,000
Bella = 120,500
Charlie = 120,500
Dean = 121,000

So far, i got into this mess, working formula, but not intended (im using R11 cell as example)
=IF(MOD(R11;1000)<=250;ROUNDDOWN(R11;-3);IF(MOD(R11;1000)>250;ROUNDUP(R11;-3);IF(MOD(R11;1000)<=750;ROUNDDOWN(R11;-3);IF(MOD(R11;1000)>750;ROUNDUP(R11;-3)))))
with this formula, i got the rounding a lil messed up, example
Aaron = 120,000
Bella = 121,000
Charlie = 121,000
Dean = 121,000

Any help or comments really appreciated

Thankyou
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
If I understand it correctly, then:

Excel Formula:
=MROUND(A1,0.5)
hello, thanks for your reply, but i think you got it wrong, its 120,000 "one hundred and twenty thousand", not in decimals, and from i know, if i use that function you gave, the formula will still be working, but not as i intended.
 
Upvote 0
Ah, sorry, my bad. I do not know about your data structure but would it not be possible to divide your original data by 1,000, then use MROUND, and then multiply by 1,000, i.e.

Excel Formula:
=MROUND(A1/1000,0.5)*1000
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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