+ Reply to Thread
Results 1 to 5 of 5

Best Way to Remove trailing '.0' for Whole Percentage Numbers

  1. #1
    Forum Contributor
    Join Date
    04-23-2014
    Location
    United Kingdom
    MS-Off Ver
    Microsoft 365
    Posts
    149

    Best Way to Remove trailing '.0' for Whole Percentage Numbers

    I am wondering what is the best way to display a percentage so that if it is a whole number, it shows as 5% instead of 5.0%, for example. Any other percentage that isn't a whole should still display like it usually would. Eg. 6.2% as 6.2%, 9.9% as 9.9% etc. I'm not interested in using any custom cell formatting to achieve this — I want to do it via a formula that involves the TEXT function.

    Please see my example attached.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: Best Way to Remove trailing '.0' for Whole Percentage Numbers

    You can use this :
    Please Login or Register  to view this content.

  3. #3
    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: Best Way to Remove trailing '.0' for Whole Percentage Numbers

    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 5.0% 5%
    2 6.2% 6.2%
    3 9.9% 9.9%
    4 55.0% 55%
    5 10.0% 10%
    6 100.0% 100%
    7 13.8% 13.8%
    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

  4. #4
    Forum Contributor
    Join Date
    04-23-2014
    Location
    United Kingdom
    MS-Off Ver
    Microsoft 365
    Posts
    149

    Re: Best Way to Remove trailing '.0' for Whole Percentage Numbers

    Both of those methods work equally well. Thanks guys!

  5. #5
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: Best Way to Remove trailing '.0' for Whole Percentage Numbers

    You are welcome and thanks for the rep.

+ 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: 9
    Last Post: 11-23-2016, 12:22 PM
  2. Remove trailing commas
    By danallamas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-23-2016, 11:04 AM
  3. Percentage trailing stop loss
    By saivenkat in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-21-2013, 11:53 PM
  4. [SOLVED] Remove Trailing Spaces
    By andrewc in forum Excel General
    Replies: 2
    Last Post: 09-18-2013, 12:56 PM
  5. Remove trailing zeros?
    By arreferee in forum Excel General
    Replies: 1
    Last Post: 01-14-2013, 09:00 PM
  6. Replies: 5
    Last Post: 11-26-2012, 08:44 AM
  7. [SOLVED] remove trailing spaces
    By les8 in forum Excel General
    Replies: 4
    Last Post: 01-20-2006, 12:00 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