+ Reply to Thread
Results 1 to 5 of 5

Decimal Point where it belongs AND Decimal Point where comma belongs #VALUE

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    Long Beach, WA
    MS-Off Ver
    Excel 2013
    Posts
    87

    Decimal Point where it belongs AND Decimal Point where comma belongs #VALUE

    I received a spreadsheet in normal US English format except:
    While all the decimal points are DOTS as normal, all of the 1,000s separators are also DOTs!!

    The numbers aren't recognized and calculations end up with #VALUE.

    How to fix this?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,913

    Re: Decimal Point where it belongs AND Decimal Point where comma belongs #VALUE

    the numbers may in fact be text. You can convert each number using a helper column and multiply each by 1.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

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

    Re: Decimal Point where it belongs AND Decimal Point where comma belongs #VALUE

    Simply multiplying by 1 (or any of the other common "convert number stored as text to number") may not work, or may not work consistently. With multiple "dots" within a number Excel may not know how to interpret these strings as numbers, or may be inconsistent in its interpretation of these as numbers.

    Can I assume that the interpretation of these as numbers is straightforward to you? Can you provide some examples of these text strings that illustrate the different values, along with the numeric value you need them converted to?

    My first thought is to use the Text to Columns command with "." as delimiter to separate the different parts of the number into separate columns. Then use formulas to recombine them correctly.

    Another possibility is to use the SUBSTITUTE() function (https://support.office.com/en-us/art...0-1e58df3bc332 ). Spend some time with the 4th "Instance num" argument, so that you can specify which "."'s to replace with nothing or "," so that Excel can interpret these as numbers.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    03-07-2013
    Location
    Long Beach, WA
    MS-Off Ver
    Excel 2013
    Posts
    87

    Re: Decimal Point where it belongs AND Decimal Point where comma belongs #VALUE

    Here is some of the cell content:
    8696.957.41 8057.500.46 7823.859.57 7823.859.6
    203.178.41 145.383.05 21.505.29
    204 201 200.00
    4 2 3.00
    0.75

    I think it's OK to assume if there is a decimal point near the right end that is followed by one or two digits then that's a "real" decimal point.
    But the others that fall 6 places to the left (sometimes 5 places to the left) are supposed to be commas - 1,000s separators.

    Adding zero or multiplying by 1, or adding two of these numbers or ..... results consistently in #VALUE.
    Last edited by fred3; 03-26-2016 at 10:18 PM.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,555

    Re: Decimal Point where it belongs AND Decimal Point where comma belongs #VALUE

    VBA,
    Only if digits after decimal is up to 2....

    Select the cell(s) that you want to convert then run the code.
    Please Login or Register  to view this content.

+ 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: 10
    Last Post: 06-17-2020, 09:29 AM
  2. [SOLVED] converting comma to decimal point
    By greenhouse in forum Excel General
    Replies: 8
    Last Post: 02-07-2018, 06:41 AM
  3. [SOLVED] Import file and convert decimal point to comma
    By veniw in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-17-2013, 12:32 AM
  4. formula to change comma to decimal point?
    By legepe in forum Excel General
    Replies: 6
    Last Post: 06-19-2010, 05:49 AM
  5. Numeric keyboard decimal key - comma or point or both
    By nsv in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-07-2008, 04:08 AM
  6. Replies: 3
    Last Post: 03-18-2006, 02:25 PM
  7. Decimal point/comma issue
    By Excelerate-nl in forum Excel General
    Replies: 3
    Last Post: 01-12-2006, 05:50 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