Forum Discussion
Unable to convert text to number
Thanks Patrick2788
I reviewed the data manually and there where no symbols, period or blanks spaces, but to follow your suggestions. I did a =RIGHT and =LEFT functions to remove any invisible pre-leading digits and found that although I could not see anything I guess there was some type of digit/space before and after the text.
EXAMPLE, MY A2 CELL WAS 0001
To clean left side of A2, in CELL D2, I used =LEFT(A2,LEN(A2)-1) which returned with 0001; that indicated that there was a pre-leading digit/blank on the left side that was not visible, but the formula removed it. Them, in Cell F2, I used =RIGHT(D2,LEN(D2)-4) to clean the right side of D2 which already had the left side cleaned; I was able to confirmed that there was also a digit/space in the right side of the cell since -3 should have returned 1, but it required -4 to return 1; still as text. In Cell G2, I used =VALUE F2 and "wah lau" I got 1; the desired, text to number conversion; super hard way, but I can't control the original data source so this will have to do. Note that the =RIGHT formula was modified to -3 when I reached 10, and -2 when I reached 100, -1 when I reached 1,000. I appreciate the feedback!