JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,303
- Office Version
-
- 365
- Platform
-
- Windows
I have a column of numbers that range from the thousandths (.nnn) to the thousands n,nnn. I'd like to format them with a variable number of decimal places according to this table:
<tbody>
</tbody>
I only want to vary the appearance of the value, not the value itself.
I know I can use a nested IF statement with the Format function to get the desired formatting, but this changes the value in the cell. I can do the same thing with a UDF.
I know I can create a second column for the formatted value so the original value is preserved in the other column.
Is there another way so I can use a single column, vary the formatting, and not change the values?
Value | Decimal places |
<1 | 3 |
<10 | 2 |
<100 | 1 |
>=100 | 0 |
<tbody>
</tbody>
I only want to vary the appearance of the value, not the value itself.
I know I can use a nested IF statement with the Format function to get the desired formatting, but this changes the value in the cell. I can do the same thing with a UDF.
I know I can create a second column for the formatted value so the original value is preserved in the other column.
Is there another way so I can use a single column, vary the formatting, and not change the values?