After scraping a website I ended up with values with dashes in the data like 7-6, 12-5, 3-12. I was able to separate the data into to their own columns making the previous examples being 7, 6 , 12,5 3,12, but the data has turned from values that you can add and subtract to something like a string. Is there a way to make the strings into values.
在抓取了一个网站之后,我最终以7-6、12-5、3-12的数据在数据中找到了值。我能够将数据分离到自己的列中,使前面的示例为7 6 12 5 3 12,但是数据已经从可以加减的值变成了字符串。有没有一种方法可以把字符串变成值。
0 15
0 15
1 2
1 2
5 6
5个6
4 8
4 8
3 2
3 - 2
2 1
2 1
If i go through each cell and double click the strings it converts to values, but I cant do that to 55000 cells.
如果我遍历每个单元格并双击它转换为值的字符串,但是我不能将其转换为55000个单元格。
2 个解决方案
#1
1
you can convert a text string that represents a number to number format using the Value()
formula
可以使用Value()公式将表示数字的文本字符串转换为数字格式
Example: B1 = Value(A1))
例如:B1 =价值(A1))
if A1 = 15
in text format
如果A1 = 15为文本格式
#2
0
You can select the whole columns and convert to number. Go to menu Data > Convert and then, follow the wizard.
您可以选择整个列并将其转换为number。转到菜单数据>转换,然后跟随向导。
#1
1
you can convert a text string that represents a number to number format using the Value()
formula
可以使用Value()公式将表示数字的文本字符串转换为数字格式
Example: B1 = Value(A1))
例如:B1 =价值(A1))
if A1 = 15
in text format
如果A1 = 15为文本格式
#2
0
You can select the whole columns and convert to number. Go to menu Data > Convert and then, follow the wizard.
您可以选择整个列并将其转换为number。转到菜单数据>转换,然后跟随向导。