Custom number format

eirikdaude

Board Regular
Joined
Nov 26, 2013
Messages
93
Office Version
  1. 365
Platform
  1. Windows
Can someone give me a pointer as to why my custom number format only shows 1 decimal place? The number format is

Code:
_-* # ##0,000_-;-* # ##0,000_-;_-* "-"??_-;_-@_-

And I ran this snippet on the range to make sure it's all numbers...

VBA Code:
Sub dlæøphkæl()
    Dim c As Range
    
    For Each c In ActiveSheet.Range("S34:AD34")
        c.Value = CDbl(Trim(c.Value))
    Next c
End Sub

1674463842202.png
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Given the cell alignment, those must be text.
 
Upvote 0
Solution
Given the cell alignment, those must be text.
Yeah, and for the life of me I can't seem to be able to transform them into numbers, not even when typing a different number into the cell. Anyway, it's not all that big of a deal, those are primarily historic data and I can use the numbervalue-function to transform them to numbers the other places in the spreadsheet where they are used. Thanks for the reply!
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,687
Members
449,117
Latest member
Aaagu

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