mrmmickle1
Well-known Member
- Joined
- May 11, 2012
- Messages
- 2,461
I have a column that has text numbers in it and I am having trouble converting the text to numbers.
I have tried:
1.Number Format, General Format
2. This macro:
3. =NUMBERVALUE(A1)
4. Copy and Paste As Values
5. They test FALSE for =ISNUMBER()
They look like this:
does anyone know why this would be occurring or how to fix my issue? Any help would be appreciated.
I have tried:
1.Number Format, General Format
2. This macro:
Code:
[COLOR=#0000ff]Sub[/COLOR] FormatTexttoNumbers()
[COLOR=#0000ff] Dim[/COLOR] Col [COLOR=#0000ff]As [/COLOR]Range
[COLOR=#0000ff] On Error Resume Next[/COLOR]
[COLOR=#0000ff] Set[/COLOR] Col = Application.InputBox("Please select a column...", Type:=8)
[COLOR=#0000ff] Set[/COLOR] Col = Columns(Col.Cells(1).Column)
Col.NumberFormat = "0.00"
Col.Value = Col.Value
[COLOR=#0000ff] On Error GoTo 0[/COLOR]
[COLOR=#0000ff]End Sub[/COLOR]
3. =NUMBERVALUE(A1)
4. Copy and Paste As Values
5. They test FALSE for =ISNUMBER()
They look like this:
Excel 2012 | ||||
---|---|---|---|---|
C | D | |||
2 | 100.1 | 9992 | ||
3 | 1011.4 | 988 | ||
4 | 10.2 | 98348 | ||
5 | 1028.7 | 972 | ||
6 | 103.1 | 9696 | ||
7 | 10.7 | 93276 | ||
8 | 1074.5 | 930 | ||
9 | 1079.6 | 926 | ||
10 | 1094.0 | 914 | ||
11 | 111.9 | 8933 | ||
12 | 1130.0 | 884 | ||
13 | 113.8 | 8789 | ||
14 | 116.7 | 8568 | ||
15 | 1171.4 | 853 | ||
Sheet1 |
does anyone know why this would be occurring or how to fix my issue? Any help would be appreciated.