convert to numbers

Copper Contributor

Hello,

I'm quite new at excel and I need your help. So I exported data from python to txt file and then I imported it to excel and the data is read by excel as text instead of numbers. I alredy try a few methods like a function VALUE or changing cell type. What can I do? Any ideas? I want to work with this numbers so i really need to convert them.

2 Replies
well, those numbers worked just fine for me. They do show a 'warning' on those cells which when I open it says number stored as text and even gives me option to convert to numbers. That said, if a do a formula in another cell like =a2+b2 it works just fine for me. I also used the double '-' to convert them to numbers. basically in col C 2 used =--a2 but that should be the same as =value(a2)
don't know if that was any help, sry.

@medzik 

To convert those numbers into real numbers, follow these steps...

 

  1. Select the whole column A by clicking on the column letter A.
  2. Go to Data Tab --> and click on Text to Columns and directly click on Finish in the first step.

This will convert the numbers in column A to real numbers. Repeat the above steps for column B separately.

 

Once the numbers are converted into the real numbers, the decimal values will be truncated to two decimal places but the underlying numbers remain intact. You may increase the decimal places for these columns as per your requirement.