• Convert text to number (Excel 2002 SP2)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Convert text to number (Excel 2002 SP2)

    Author
    Topic
    #400430

    Hello,

    I frequently have to download financial statements various from various websites and in various formats. Sometimes the numbers really are numbers and there is no problem. Frequently though the numbers are text and even after I use the Clean() function, I still can’t do arithmetic. Is there an easy way to change text to numbers? The length varies, etc.

    I’ve seen lots of date fixes, but no general number fix.

    Thanks

    Viewing 5 reply threads
    Author
    Replies
    • #781164

      Data, text to columns generally is a good tool to fix those.

    • #781165

      Data, text to columns generally is a good tool to fix those.

    • #781208

      (Only in Excel 2002 and higher)

      If you select a range of cells in which the active cell is a number seen as text, Excel will display a smart tag “Number stored as text”, with Convert to Number as an option.

    • #781209

      (Only in Excel 2002 and higher)

      If you select a range of cells in which the active cell is a number seen as text, Excel will display a smart tag “Number stored as text”, with Convert to Number as an option.

    • #781215

      Another thing to watch for is embedded “sticky spaces” (ASCII 160) . Some accounting programs will add “sticky spaces” to ensure that the numbers do not get reformatted. Excel knows to “trim” off regular spaces but treats “sticky-spaces” like regular text so many of the “conversion tricks” will not get rid of them.

      Many times just find -0160 (hold alt key and type (no quotes): “0160” on numeric keypad) and replace with “nothing” [leave replace box “blank”] will get excel to automatically convert them.

      Steve

      • #781221

        Steve’s solution worked great. Thanks. It was a little tricky since I’m using my laptop, so I had to use ALT-CNTRL and the blue numbers on the keyboard.

        The text to column wouldn’t work because I already have lots of columns, and I wasn’t able to get the smart tags to come up. The smart tag has worked in the past.

        WOPR is a wonderful community. Thanks for all help.

        • #781245

          With lots of columns another trick is to put the number one (1) in a blank cell. Copy it to the clipboard and then highlight the range of “Number-text” you want to be numbers, and paste special – multiply.

          This will do similar to the text to columns but do more than 1 column at a time.

          Neither of these tricks (Paste special – multiply, text-to-columns) work very well, if the text has “sticky spaces” for the reasons I mentioned earlier.

          Steve

        • #781246

          With lots of columns another trick is to put the number one (1) in a blank cell. Copy it to the clipboard and then highlight the range of “Number-text” you want to be numbers, and paste special – multiply.

          This will do similar to the text to columns but do more than 1 column at a time.

          Neither of these tricks (Paste special – multiply, text-to-columns) work very well, if the text has “sticky spaces” for the reasons I mentioned earlier.

          Steve

      • #781222

        Steve’s solution worked great. Thanks. It was a little tricky since I’m using my laptop, so I had to use ALT-CNTRL and the blue numbers on the keyboard.

        The text to column wouldn’t work because I already have lots of columns, and I wasn’t able to get the smart tags to come up. The smart tag has worked in the past.

        WOPR is a wonderful community. Thanks for all help.

    • #781216

      Another thing to watch for is embedded “sticky spaces” (ASCII 160) . Some accounting programs will add “sticky spaces” to ensure that the numbers do not get reformatted. Excel knows to “trim” off regular spaces but treats “sticky-spaces” like regular text so many of the “conversion tricks” will not get rid of them.

      Many times just find -0160 (hold alt key and type (no quotes): “0160” on numeric keypad) and replace with “nothing” [leave replace box “blank”] will get excel to automatically convert them.

      Steve

    Viewing 5 reply threads
    Reply To: Convert text to number (Excel 2002 SP2)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: