Hi
Does anyone know how to define a custom format to show an integer number as decimal with fix amount of decimal digits. e.g.:
- when typing 350 show 0.0350
- when typing 47.68 show 0.0048
Thank you
Hi
Does anyone know how to define a custom format to show an integer number as decimal with fix amount of decimal digits. e.g.:
- when typing 350 show 0.0350
- when typing 47.68 show 0.0048
Thank you
I am not aware of any number format code that will scale a number by 10,000 (4 decimal places). You can use a "," (or whatever your thousands separator is) to scale a numbers by thousands (multiples of 3 decimal places). For example, 350 formatted as 0.000, will display as 0.350. 47.68 with the same number format code will display as 0.048.
That's the closest number format solution I can see. I do not see an exact solution using only number formatting. Of course, there are ways to use formulas to divide a number by 10,000 then format to show to the nearest 0.0001.
If it helps, here's the help file that describes all available number format codes (in my early days of learning spreadsheets, this was one of my most frequently referenced help pages): https://support.microsoft.com/en-us/...7-9c9354dd99f5
Originally Posted by shg
Hi MrShorty
Thank you for your reply.
Your idea didn't match what I look for... but based on your suggestion I tried the custom format "#0,0000." ("," decimal separator and "." thousands separator) and 350 is shown as 0,3500.
Thank you for your reply, it helped
you can try to achieve this by using a formula
For example, in Excel, you could use the following formula to convert a number to the desired format:
Formula:
=IF(A1<1,A1/100,A1/1000)
Where A1 is the cell that contains the input number.
I know this is not what you want but maybe it will help
Thank you for your suggestion
rafo0510,
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
Dave
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks