+ Reply to Thread
Results 1 to 4 of 4

Data Connection to Textfile - Convert Text to Real Number

  1. #1
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Karlstad, Sweden
    MS-Off Ver
    Excel 2016
    Posts
    232

    Data Connection to Textfile - Convert Text to Real Number

    Hi,

    I have created a Data Connection to a textfile. Just a plain table. However, some columns with numbers are interpreted as text after import. When I enter a cell value interpreted as text and press enter in formula bar, the value will be interpreted as number at once. But it's impossible to go through the entire table. If I Refresh my Data Connection, everything will be lost again.

    Is there a way to fix this?

    \Joakim
    1. Reply to thread and inform if suggestion was helpful or not
    2. Click on the star (=Add Reputation) if you think someone helped you
    3. Mark [SOLVED] to this thread if solution was found. (On Menu "Thread Tools" > "Mark this thread as solved")

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,658

    Re: Data Connection to Textfile - Convert Text to Real Number

    You could use PowerQuery to connect to the data, then make sure that the query fixes the column settings before loading.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Karlstad, Sweden
    MS-Off Ver
    Excel 2016
    Posts
    232

    Re: Data Connection to Textfile - Convert Text to Real Number

    Thanks AliGW!

    Worked perfect.

    \Joakim

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,658

    Re: Data Connection to Textfile - Convert Text to Real Number

    Glad to have helped.

+ 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. [SOLVED] Need vba code: How to export 2 column sheet to textfile / import textfile to 2 columns
    By frankytheman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-10-2020, 09:24 AM
  2. Convert text in multiple columns to real date and time
    By ken444444 in forum Excel General
    Replies: 4
    Last Post: 10-06-2014, 01:19 PM
  3. Macro to automatically convert prt scr image-based text to real text in cell
    By jasonfromchico in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2014, 02:27 PM
  4. Replies: 4
    Last Post: 01-13-2013, 08:56 PM
  5. Connection to textfile in the same folder
    By Sverker in forum Excel General
    Replies: 1
    Last Post: 06-07-2010, 11:35 PM
  6. Convert real number to an h:mm:ss display
    By Tom Weyand in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-22-2006, 06:35 PM
  7. [SOLVED] How do you convert numbers to real text
    By Harry in forum Excel General
    Replies: 5
    Last Post: 01-26-2006, 10:25 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