+ Reply to Thread
Results 1 to 3 of 3

Format TEXT based on whole or decimal percentage

  1. #1
    Registered User
    Join Date
    11-09-2016
    Location
    London, England
    MS-Off Ver
    2010/2016
    Posts
    72

    Format TEXT based on whole or decimal percentage

    Hi,

    I'm using TEXT with CONCATENATE to show a percentage value as text. However if I use no decimal in the formula it rounds decimal percentages which I don't want.

    Is it possible to determine whole percentages and apply one format of the other?

    20% = TEXT(A1,"0%") = should show as 'Total VAT (20%)'
    17.5% = TEXT(A1,"0.0%") = should show as 'Total VAT (17.5%)'

    ec. etc.

    Thanks

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Format TEXT based on whole or decimal percentage

    A
    B
    C
    2
    20.0%
    Total VAT (20%) B2: ="Total VAT " & TEXT(A2, IF(MOD(A2, 1%) < 0.001, "(0%)", "(0.0%)"))
    3
    17.5%
    Total VAT (17.5%)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-09-2016
    Location
    London, England
    MS-Off Ver
    2010/2016
    Posts
    72

    Re: Format TEXT based on whole or decimal percentage

    Thanks very much

+ 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] Need to Display Text and Time, not in decimal format
    By shawnsdad in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-03-2019, 09:26 PM
  2. Create a formula to enter a value based on decimal number (percentage)
    By tauran in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-26-2019, 08:11 AM
  3. Replies: 4
    Last Post: 04-19-2016, 05:19 PM
  4. Keep number format when converting to text - with decimal and zeros
    By tampagirl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-11-2014, 06:34 PM
  5. [SOLVED] Format Percentage to 1 Decimal Place
    By Gos-C in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2013, 08:01 PM
  6. Convert Number in Text format to Value with decimal
    By MAHMUZ in forum Excel General
    Replies: 4
    Last Post: 09-15-2010, 10:28 AM
  7. [SOLVED] Format percentage as a decimal
    By BSAT Student in forum Excel General
    Replies: 2
    Last Post: 10-20-2005, 05:05 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