Results 1 to 6 of 6
  1. #1
    Star Lounger
    Join Date
    Feb 2008
    Posts
    99
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Remove trailing zero; percentage

    I am entering a lot of percentages into an Excel (2007). The data are expressed to three decimal accuracy (1.312% for example). And I have the column set up as percent, with three decimal places.

    However, for my final report, I am asked to delete trailing zeros. For instance, 1.300% is not appreciated; I am asked to report it as 1.3%. (Sheesh! )

    As I have some 3,000 entries, any suggestions on how to automate this?
    [I have been here for years; I had to get things restarted]

  2. #2
    5 Star Lounger RussB's Avatar
    Join Date
    Dec 2009
    Location
    Grand Rapids, Michigan
    Posts
    803
    Thanks
    10
    Thanked 50 Times in 49 Posts
    Select all of the affected cells and change the number of digits behind the decimal point. There should be an icon for this.
    Do you "Believe"? Do you vote? Please Read:
    LEARN something today so you can TEACH something tomorrow.
    DETAIL in your question promotes DETAIL in my answer.
    Dominus Vobiscum <))>(

  3. #3
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,436
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    John,

    You need to set up a custom format, see below. Select all the cells involved before entering the format menu.
    Attached Images Attached Images
    Last edited by RetiredGeek; 2011-08-23 at 10:43.
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  4. #4
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts
    RetiredGeek: I think you meant 0.0##% [Otherwise the 1.3% would display as 0.013.]

    JohnD1: Personally I do not like removing just trailing zeroes as it makes the precision representaion variable. I would go for custom number format of 0.0% and have 1.300% and 1.312% both display as 1.3% instead of having 1.300% display as 1.3% and 1.312% display as 1.312%. Unless specified the typical presumption is .5 in the last decimal so 1.3% suggests (with no otehr information) a number between 1.25-1.35%, where 1.300% suggests that it is between 1.2995-1.3005%

    Steve
    Last edited by sdckapr; 2011-08-23 at 12:41.

  5. #5
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,436
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Quote Originally Posted by sdckapr View Post
    RetiredGeek: I think you meant 0.0##% [Otherwise the 1.3% would display as 0.013.]
    Steve
    Steve,

    Right you are!
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  6. #6
    Star Lounger
    Join Date
    Feb 2008
    Posts
    99
    Thanks
    12
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by sdckapr View Post
    RetiredGeek: I think you meant 0.0##% [Otherwise the 1.3% would display as 0.013.]

    JohnD1: Personally I do not like removing just trailing zeroes as it makes the precision representaion variable. I would go for custom number format of 0.0% and have 1.300% and 1.312% both display as 1.3% instead of having 1.300% display as 1.3% and 1.312% display as 1.312%. Unless specified the typical presumption is .5 in the last decimal so 1.3% suggests (with no otehr information) a number between 1.25-1.35%, where 1.300% suggests that it is between 1.2995-1.3005%

    Steve
    Oh my! Custom formatting!

    (Know why I have a flat forehead? I ask the question; I get the answer; I slap my forehead with my palm saying "Of Course! Why didn't I think of it?")

    Thanks to all!

    And, yes I am quite familiar with the varying precisions implied by dropping the final zero(s). This is not of my doing; I am merely the messenger at this point. (What I am doing is analyzing data sent to me; I need to present my report in the manner that the data was given me. They drop final zero--I drop final zero.)
    [I have been here for years; I had to get things restarted]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •