+ Reply to Thread
Results 1 to 4 of 4

How to format xx,xx numbers as xx,xxx

  1. #1
    Registered User
    Join Date
    06-04-2015
    Location
    california, usa
    MS-Off Ver
    2011
    Posts
    5

    How to format xx,xx numbers as xx,xxx

    Hi everyone:


    I have a sheet that has a lot of data on it. Problem is, looks like a lot of the numbers got truncated somewhere down the line and so thousands values look like 31,45 instead of, say, 31,450.

    To make matters worse, in each column, the majority of numbers are formatted as 31,45 but then SOME of them are formatted as 31450. That is, most cells just need a zero put in three spaces to the right of the comma, and OTHER cells actually need a comma.

    For my purposes, I don't need a comma. But it's important to have because my numbers range from x,xxx - xxx,xxx. So without the comma, the program can't tell the different between 9,430 that's been written in 9430 format and 94,300 that's been written in 94,30 format.

    As far as I know, there aren't any numbers written in 43,540 format—that is, non-truncated but with a comma. So I'm pretty sure than any value with no comma that looks like 46740 is meant to be 46,740 while any value with a comma has been truncated, so that if 46,740 were written in comma format it would appear as 46,74.

    I hope this is enough information and has been explained correctly. Happy to field questions and try things out!
    thanks!

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to format xx,xx numbers as xx,xxx

    Try this formula
    in B1 and copy down

    =--IF(ISNUMBER(FIND(",",A1)),A1&"0.00",A1)

    Row\Col
    A
    B
    1
    31,45
    31450
    2
    31450
    31450
    3
    43,54
    43540
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    06-04-2015
    Location
    california, usa
    MS-Off Ver
    2011
    Posts
    5

    Re: How to format xx,xx numbers as xx,xxx

    Hi-
    Thanks for the reply.

    For me, for some reason, that kept the numbers exactly the same. For example, I tried it on 31.25 and it spit back out 31.25 instead of 31.250 or something.

    did I do something wrong?

    thanks!

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to format xx,xx numbers as xx,xxx

    31.25 is a valid number, there is nothing needs to be done with it. To get 31.250 you simply need to change the decimal number. However, it is difficult to tell whether some of these numbers are real numbers or text. I would suggest to upload a sample spreadsheet.

+ 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] Change imported numbers in text format to numbers
    By navialivad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2014, 02:30 PM
  2. Replies: 8
    Last Post: 06-28-2014, 03:26 PM
  3. Need Numbers to Concatenate to Number Format, Not Text Format
    By DJH in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-08-2014, 01:01 AM
  4. [SOLVED] I want telephone numbers and time of any format to specific format
    By Latha Mani in forum Excel General
    Replies: 16
    Last Post: 01-11-2014, 09:58 AM
  5. Convert numbers from text format to number format
    By merlin68 in forum Excel General
    Replies: 4
    Last Post: 04-12-2005, 09:06 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