Text to Number

Coolsandyp

New Member
Joined
Mar 29, 2020
Messages
19
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
  2. Mobile
I am doing text to columns from a text file in excel. It has one column of numbers where numbers are shown as 1,000.00 , 2,500.00, 3,51,000.00......Wherever one comma occurs in numbers, it interprets as number but numbers with 2 commas are interpreted as text. I have tried all methods (Text to column, Value function, multiplication by 1, adding 0,etc ) to convert them back to number but none works. Kindly find me an easy solution.
 
Out of curiosity, I set my PC regional settings to English (India) and used text to columns on 3 columns of data as shown below pasted in from a text file:

Data Col1 Data Col2 Data Col3
1,000.50 2,250.50 5,550.50
10,000.50 20,250.50 50,550.50
1,00,000.50 2,00,250.50 5,00,550.50
10,00,000.50 20,00,250.50 50,00,550.50
1,00,00,000.50 2,00,00,250.50 5,00,00,550.50
10,00,00,000.50 20,00,00,250.50 50,00,00,550.50
1,00,00,00,000.50 2,00,00,00,250.50 5,00,00,00,550.50
10,00,00,00,000.50 20,00,00,00,250.50 50,00,00,00,550.50


The text to column function correctly interpreted all of them as numeric values:
Data Col1Data Col2Data Col3
1,000.502,250.505,550.50
10,000.5020,250.5050,550.50
1,00,000.502,00,250.505,00,550.50
10,00,000.5020,00,250.5050,00,550.50
1,00,00,000.502,00,00,250.505,00,00,550.50
10,00,00,000.5020,00,00,250.5050,00,00,550.50
1,00,00,00,000.502,00,00,00,250.505,00,00,00,550.50
10,00,00,00,000.5020,00,00,00,250.5050,00,00,00,550.50


When I changed my regional setting back to English (United States) and repeated the text to column exercise on the same data. Only the values with one comma were interpreted as numbers. Any with 2 or more commas were interpreted as text. Just as you described your problem. So the text to column feature seems to work for the two column digital grouping, so long as the regional setting is correct.
 
Upvote 0

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Out of curiosity, I set my PC regional settings to English (India) and used text to columns on 3 columns of data as shown below pasted in from a text file:

Data Col1 Data Col2 Data Col3
1,000.50 2,250.50 5,550.50
10,000.50 20,250.50 50,550.50
1,00,000.50 2,00,250.50 5,00,550.50
10,00,000.50 20,00,250.50 50,00,550.50
1,00,00,000.50 2,00,00,250.50 5,00,00,550.50
10,00,00,000.50 20,00,00,250.50 50,00,00,550.50
1,00,00,00,000.50 2,00,00,00,250.50 5,00,00,00,550.50
10,00,00,00,000.50 20,00,00,00,250.50 50,00,00,00,550.50


The text to column function correctly interpreted all of them as numeric values:
Data Col1Data Col2Data Col3
1,000.502,250.505,550.50
10,000.5020,250.5050,550.50
1,00,000.502,00,250.505,00,550.50
10,00,000.5020,00,250.5050,00,550.50
1,00,00,000.502,00,00,250.505,00,00,550.50
10,00,00,000.5020,00,00,250.5050,00,00,550.50
1,00,00,00,000.502,00,00,00,250.505,00,00,00,550.50
10,00,00,00,000.5020,00,00,00,250.5050,00,00,00,550.50


When I changed my regional setting back to English (United States) and repeated the text to column exercise on the same data. Only the values with one comma were interpreted as numbers. Any with 2 or more commas were interpreted as text. Just as you described your problem. So the text to column feature seems to work for the two column digital grouping, so long as the regional setting is correct.
Thank You. I will try the same. Thank you very much :)
 
Upvote 0
The version I use does not support power query.

This statement is not true. Power Query is called Get and Transform and is native to Excel2016 and Excel 2019 which you have indicated you are using. It can be downloaded from Microsoft for your 2013 version.
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,314
Members
449,081
Latest member
tanurai

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