Convert To Numbers from Text

jazzista

Board Regular
Joined
Sep 15, 2014
Messages
86
Hello Message Board: I am trying to convert a small data set from text to number ( AMOUNT Column) . I have tried several methods including text to columns , Fomulas like =VALUE(TRIM(a3)), Trim, etc and I cannot get rid of the trailing spaces to the right. I need a formula solution for this. I know that I can easily resolve this in PQ but I am curious to see why I cannot change the text to numbers. Thanks in advance

Here is the file in the link below.

https://www.dropbox.com/s/snjzd4ua8zkiad7/convert%20to%20numbers.xlsx?dl=0
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try

Code:
=LEFT(I2,FIND(" ",I2,1))+0
 
Upvote 0
Mr Michael! Thank you very muchhhh…. My goodness.. I have tried in all sorts of forms to get the text to number. Quick question: why the
FIND(" ",I2,1 Piece...? I guess thats the heart of the formula Thanks Again....
 
Upvote 0
Basically, it is saying
extract all the cells from the LEFT
Code:
=LEFT(I2
Until you FIND a space (" ")
and by adding a zero on the end it converts the text to a number

Hope that helps
 
Last edited:
Upvote 0
Mr Michael: Very elegant solution. I got it now. Thank you soooo much again... I will practice this several times...Have a great day...!
 
Upvote 0
Glad to help.....and thx for the feedback...:beerchug:
 
Upvote 0
Mr Michael.. on the contrary... thanks for your help and your quick reply. I was getting so frustared this afternoon since i started doing text to columns and it did not work. Then i tried the trim function and that did not work either..... but now, i learned your trick!
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

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