+ Reply to Thread
Results 1 to 8 of 8

Formating Decimal values

  1. #1
    Registered User
    Join Date
    07-20-2011
    Location
    Kerala, India
    MS-Off Ver
    Excel 2013
    Posts
    93

    Thumbs up Formating Decimal values

    Hi!
    Thank you for all your support!

    some of my numeric values are with single decimals .....

    Eg:

    1542.2
    9856.5
    659855.9
    2589.7

    when i format in Excel with Number with 2 decimals my results remain the same

    But the result which is need is:

    1542.20
    9856.50
    659855.90
    2589.70

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Formating Decimal values

    Right click the area with numbers and go to Format Cells, Number, Custom, and use the following: #.00
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Formating Decimal values

    =round(a1,2)

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Formating Decimal values

    You would see that behavior if the "numbers" were previously formatted as Text. Changing the format to something numeric won't convert the text to numbers. Consequently, the formatting change will not be visible. You need to convert the text to numbers.
    Try this:
    • Select your single-column range of "numbers"
    • Data.Text-to-columns...Click: Finish

    Does that solve the problem?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    Registered User
    Join Date
    07-20-2011
    Location
    Kerala, India
    MS-Off Ver
    Excel 2013
    Posts
    93

    Re: Formating Decimal values

    Thank you all!

  6. #6
    Registered User
    Join Date
    05-07-2012
    Location
    Boulder, CO
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Formating Decimal values

    none of these worked for me when I copied a table from web and pasted to Excel. What works sometimes is to paste with formatting as text, then apply one of these conversions mentioned above. Sometimes it does not work. What gives?

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Formating Decimal values

    @DAVYBOY

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

  8. #8
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Formating Decimal values

    Quote Originally Posted by davyboy View Post
    none of these worked for me when I copied a table from web and pasted to Excel. What works sometimes is to paste with formatting as text, then apply one of these conversions mentioned above. Sometimes it does not work. What gives?
    Frequently, when we copy from a web page, some whitespace that looks like regular spaces are actually nonbreaking spaces (HTML nbsp).

    Usually, it is sufficient to paste into Notepad (or equivalent) first, then copy from Notepad and paste into Excel.

    Alternatively, if your pasted data is in A1:A100, enter the following formula into a parallel column and copy down:

    =--TRIM(SUBSTITUTE(A1,CHAR(160),""))

    The double-negate (--) converts numeric text into a numeric value. Any equivalent arithmetic operation will do the same; for example, multiply by 1 or add zero.
    Last edited by joeu2004; 10-11-2014 at 03:23 PM. Reason: errata: change " " to ""; add TRIM

+ 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. Conditional formating for decimal places
    By celphtitled in forum Excel General
    Replies: 4
    Last Post: 01-30-2014, 06:43 AM
  2. [SOLVED] Formating decimal numbers
    By Rafael in forum Excel General
    Replies: 1
    Last Post: 04-11-2006, 11:25 AM
  3. Help with formating cells (decimal places)
    By madhead4000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-03-2006, 04:40 PM
  4. Formating decimal numbers
    By Wagner in forum Excel General
    Replies: 0
    Last Post: 07-19-2005, 05:05 AM
  5. Formating decimal and date
    By Rick in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-26-2005, 02:06 AM

Tags for this Thread

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