DRSteele
Well-known Member
- Joined
- Mar 31, 2015
- Messages
- 2,640
- Office Version
- 365
- Platform
- Windows
Can someone please help me?
I am trying to devise custom number formatting to take care of numbers that range from very small to large. I want to use only certain metric prefixes, all while making sure that the output is always the minimum of lead digits (for all but the ones exceeding the top and bottom categories). I also want all the decimal places without trailing zeros.
Like this:
I am trying to devise custom number formatting to take care of numbers that range from very small to large. I want to use only certain metric prefixes, all while making sure that the output is always the minimum of lead digits (for all but the ones exceeding the top and bottom categories). I also want all the decimal places without trailing zeros.
Like this:
Book1 | |||||
---|---|---|---|---|---|
A | B | C | |||
3 | distance (m) | distance (desired number formatting) | |||
4 | 0.0000006 | .00006 mm | |||
5 | 0.0005 | 0.5 mm | |||
6 | 0.0068 | 6.8 mm | |||
7 | 0.0726 | 7.26 cm | |||
8 | 0.1552 | 15.52 cm | |||
9 | 1.043 | 1.043 m | |||
10 | 17.896 | 17.896 m | |||
11 | 289.532 | 289.532 m | |||
12 | 3500.28 | 3.50028 km | |||
13 | 96875620.2 | 96,875.6202 km | |||
14 | |||||
15 | unit | acceptable | power | ||
16 | mm | yes | 0.001 | ||
17 | cm | yes | 0.01 | ||
18 | dm | no | 0.1 | ||
19 | m | yes | 1 | ||
20 | dam | no | 10 | ||
21 | hm | no | 100 | ||
22 | km | yes | 1000 | ||
Sheet59 |