+ Reply to Thread
Results 1 to 3 of 3

How to get rid of text stored as number and not loose dot in number?

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    How to get rid of text stored as number and not loose dot in number?

    Hi Guys,

    i am using this code to import text file:

    Please Login or Register  to view this content.
    everything is imported correctly but problem is that some columns are converted to a text. take a look in column B. "1" is store as text and i want to stored it as general.

    And now to convert it i could use this code:

    Please Login or Register  to view this content.
    but problem is that it is converting "4.1" (in second row) into "4,1" ! What to do? How to avoid this?
    Best,
    Jacek
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: How to get rid of text stored as number and not loose dot in number?

    I think the dot (or comma) has to do with your regional settings, so if you change these to UK or US does that give you what you want?

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: How to get rid of text stored as number and not loose dot in number?

    Hi Pete,

    thank you!

    I found the way:

    Please Login or Register  to view this content.
    just use textToColumns - the fast option.

    Best,
    Jacek

+ 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. Replies: 5
    Last Post: 02-25-2020, 09:00 AM
  2. Number Stored as Text -> Convert to Number
    By ppayjj in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-26-2019, 01:57 PM
  3. [SOLVED] VBA convert number stored as text to number
    By Littlesimon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2017, 09:54 PM
  4. [SOLVED] Set a Value as Number (Number Stored as Text warning comes up)
    By OberonViking in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2013, 01:41 AM
  5. Replies: 1
    Last Post: 10-28-2012, 05:42 AM
  6. Number stored as text
    By Blake 7 in forum Excel General
    Replies: 2
    Last Post: 06-23-2011, 06:12 AM
  7. Number stored as text. How do I keep the number format?
    By staying in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-13-2006, 11:57 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