+ Reply to Thread
Results 1 to 4 of 4

Numbers Not Formatted Correctly

Hybrid View

  1. #1
    Registered User
    Join Date
    06-19-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    24

    Numbers Not Formatted Correctly

    Hi,

    I'm working with an excel file which imports data from another software. For some reason, all the numbers come in with the decimal and the comma switched, so for example the cell in excel as 1.000,05 when it should be 1,000.05. Is there a way to fix this with a formula or something? I've tried changing the formatting options for the cell but that doesn't fix it.

    Any help would be much appreciated.

    Thanks

  2. #2
    Forum Contributor
    Join Date
    06-23-2010
    Location
    Iowa, United States
    MS-Off Ver
    Excel 2007
    Posts
    145

    Re: Numbers Not Formatted Correctly

    Hello aferoz, welcome to the forum.

    Are you familiar with find and replace? (From the home tab, find the icon that looks like binoculars under Editing).

    I would first find and replace all periods with blanks.
    Find: "."
    Replace: ""

    Then I would find and replace all commas with periods:
    Find: ","
    Replace: "."

    You can then format the numbers any way you want. Having actual commas typed into numbers will not all you to use formulas as Excel will read the number as a mix of numbers and text.

    Let me know if this helps!

    Steve
    A VBA novice, excited to learn!

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Numbers Not Formatted Correctly

    Another solution..

    =SUBSTITUTE(SUBSTITUTE(A1,".",",",1),",",".",2)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    06-19-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Numbers Not Formatted Correctly

    Thanks Steve and Ace!

    Both your solutions worked. I really appreciate it

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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