+ Reply to Thread
Results 1 to 6 of 6

Imported data not being treated as numbers

  1. #1
    Registered User
    Join Date
    03-12-2017
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    25

    Imported data not being treated as numbers

    Hi

    I have scraped a bunch of data from a website using a webcrawler. The webcrawler then exports the data as an Excel file. However, the data that is returned is not being treated as numbers, therefore I cannot add/subtract etc.

    Attached is a sample.

    I've tried formatting number and I've tried copy and pasting as values, but no luck.

    How can I tell Excel that these are numbers?

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Imported data not being treated as numbers

    They're not numbers they all have Line feed (0A) character at the end of them

    in E1
    =LEFT(A1,LEN(A1)-1)+0
    paste as far as H8

    Now copy E1:H8
    And Paste values over A1

    Delete E1:H8

    A1:D8 are now all numbers
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Imported data not being treated as numbers

    Double click on any of those cells. You will see that there is an "Alt Enter" character, CHAR(10), after the numbers.

    To get rid of that, you can put this in G1:
    =CLEAN(A1)+0
    and drag it to the right and down.

    You can then copy/paste these as values.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,084

    Re: Imported data not being treated as numbers

    Another option
    Select all the data > Ctrl H > in the find what box type Ctrl J > leave replace with empty > Replace All

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Imported data not being treated as numbers

    Quote Originally Posted by Fluff13 View Post
    Another option
    Select all the data > Ctrl H > in the find what box type Ctrl J > leave replace with empty > Replace All
    I was actually trying to do it this way, as it is the best option in my opinion.

    What is Ctrl J? Does that put in the CHAR(10) character?

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,084

    Re: Imported data not being treated as numbers

    Quote Originally Posted by 63falcondude View Post
    What is Ctrl J? Does that put in the CHAR(10) character?
    Yes it does. You should see the cursor disappear to be replaced by a blinking dot in the bottom left hand corner of the box (this is actually the top of the cursor after it has moved to the next line).
    You can alternatively use Alt 010 (but you need to use the number keypad)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Forcing data to be treated as date
    By eturn in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-12-2016, 01:13 PM
  2. I need to format imported data so I can crunch the numbers
    By julienaas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2012, 03:11 PM
  3. Replies: 9
    Last Post: 03-26-2012, 02:16 PM
  4. add imported text file name above imported data
    By tompie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2009, 08:18 AM
  5. Numbers that are not treated as numbers
    By rolferik in forum Excel General
    Replies: 2
    Last Post: 05-08-2007, 03:42 AM
  6. [SOLVED] +phone numbers not treated as formulas
    By Tim in forum Excel General
    Replies: 4
    Last Post: 07-20-2005, 12:05 AM
  7. Formula is treated as data
    By dickhob in forum Excel General
    Replies: 1
    Last Post: 07-15-2005, 11:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1