+ Reply to Thread
Results 1 to 2 of 2

Excel Data - reading decimal as thousands seperator

  1. #1
    Registered User
    Join Date
    07-09-2020
    Location
    DE
    MS-Off Ver
    2010
    Posts
    1

    Excel Data - reading decimal as thousands seperator

    Hi,
    I just loaded data from a compression test machine as a .TSX file. I'm having problems plotting my data because numbers use comma as a decimal seperator - so all values larger than 1 are automatically read as thousands.

    Does anyone have an idea how to ammend this? attached excel file as example

    thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Excel Data - reading decimal as thousands seperator

    Not sure exactly how you want to approach this. A few thoughts:

    1) What exactly is a .TSX file? A Typescript file? How is the data coming into Excel? Is it code within the .TSX file that writes the data to Excel, or is Excel importing the data as text via something like the text import wizard? Can you change anything about how the data is imported/written into Excel? You haven't said anything about this importation step, but my first inclination would be change something in the importation step so that the data comes into Excel with the correct decimal separator.

    2) Most installations of Excel default to "use your OS regional settings for decimal and thousand separator". Of course, you can change this in Excel options, but it is still an Excel global setting. Could you change your decimal and thousand separator setting before importing this data to Excel, so Excel will correctly read it? If you are importing the data via the Text Import Wizard, you can specify the decimal and thousands separators using the "advanced" options button at step 3 of the text import wizard.

    3) If you cannot somehow change the decimal separator, can you change something about the importation step so that the data forced to be text (preformat cells as text, for example)? If so, then you can easily perform a "text to columns" command after import where you can specify the decimal separator setting (step 3 of the text import wizard) as you convert the text to numbers.

    4) As a last resort, a formula based solution (post import, obviously) could be:
    4a) For the numbers between -1 and 1 which are imported as text, convert them to numbers with something like VALUE(SUBSTITUTE(text,",","."))
    4b) for the numbers less than -1 and greater than 1 (which are already seen as numbers), you know that they are a factor of 1E3 off, so divide them by 1000 -- number/1000
    4c) Nest those two options inside of an IF() function that will decide which action to execute. Maybe =IF(ISTEXT(A3),VALUE(SUBSTITUTE(A3,",",".")),A3/1000)

    Not sure how you would like to proceed, but that should give you some ideas of where to look.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. Thousands Separator with optional decimal
    By kristin01 in forum Excel General
    Replies: 4
    Last Post: 02-09-2015, 09:26 AM
  2. [SOLVED] NumberFormat: display thousand seperator and opt. decimal points
    By Klaster in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-19-2013, 11:17 AM
  3. Replies: 2
    Last Post: 08-19-2013, 06:17 PM
  4. [SOLVED] CONCATENATE decimal seperator problem
    By elevisse in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-20-2012, 10:47 AM
  5. Replies: 3
    Last Post: 06-14-2012, 06:02 AM
  6. Decimal vs. Thousands Separator
    By nsv in forum Excel General
    Replies: 5
    Last Post: 12-28-2010, 06:05 AM
  7. [SOLVED] Removal of thousands seperator in downloaded data
    By finney78 in forum Excel General
    Replies: 1
    Last Post: 08-18-2005, 05:05 AM
  8. Removal of thousands seperator
    By finney78 in forum Excel General
    Replies: 2
    Last Post: 08-18-2005, 05:05 AM

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