Dynamic decimal place rounding

MrTD

New Member
Joined
Feb 12, 2020
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

I'm trying to format these percentages with rounding based on the value of each cell.

If the percentage value is less than 10% round to = #.#%
If the percentage value is less than 0.1% round to = #.##%
If the percentage value is less than 0.01% round to = #.###%

Hopefully the example below helps to demonstrate what I'm trying to achieve:

1625656582308.png


Any help would be greatly appreciated.

Many thanks
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Here is one way - format numbers using TEXT
Look up the number format from a little table (in H2:I6 in this example)
D3 =TEXT(C3, VLOOKUP(C3,$H$2:$I$6,2,TRUE))

The table would look like
0 % '0.000%
0.01% '0.00%
0.1% '0.0%
10% '0%
1
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,208
Members
452,618
Latest member
Tam84

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