How to round value by specific value after decimal and change all value to zero after round

trungtb

New Member
Joined
Aug 5, 2023
Messages
9
Office Version
  1. 2021
Platform
  1. MacOS
I use excel and i have question.
I have value look like

Code:
7,500,300

If value after first comma less than 5(it 5 on my case) now round value into 0.
If value after first comma greater than and equal 5 now value into 5

Example:


Code:
    7,500,300 => 7,500,000
    7,5200,200 => 7,500,000
    7,9400,200 => 7,500,000
    7,2400,300 => 7,000,000
I using command look like :

Code:
=IF((VALUE(MID(7,9400,200,FIND(",",7,9400,200)+1,1))>=5),ROUND(7,9400,200),ROUNDDOWN(7,9400,200)

But it not working.

Please help me. Thanks you
 
Our formula returns the exact same values as your formula:
1692105769086.png


I am guessing maybe that you did not adjust the ranges in our formulas to match your actual set-up.
You gave us no indication what column your original values are in, so we assumed column A.
But it looks like from your last formula, they are actually in column B.
So you would need to change the range references in our formulas.

You could got with your longer formula, but ours is much shorter and simpler!
;)
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,215,336
Messages
6,124,330
Members
449,155
Latest member
ravioli44

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