+ Reply to Thread
Results 1 to 4 of 4

Conditional Number Format for varying decimal places

Hybrid View

  1. #1
    Registered User
    Join Date
    04-30-2010
    Location
    Rockville,MD
    MS-Off Ver
    Excel 2007
    Posts
    2

    Conditional Number Format for varying decimal places

    Hi,

    I have decimal numbers as text entering my spreadsheet and I need them to be converted to a number with their formats preserved. I need the trailing zeros preserved.

    Here's an example column:
    "213.10"
    "11.2000"
    "5.450"

    I need each these conveted to numbers in the format of how they look:
    213.10
    11.2000
    5.450

    I tried conditional formatting that counted the number of decial places after the decimal,
    and set the format accordingly, but I couldn't get it to convert it from text to number.

    I must stay away from using Macros.

    Thanks for any input!
    -justme23

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Number Format for varying decimal places

    You will need to format the cells independently.. you cannot convert those to numbers and preserve the number of decimals with formulas.. if there are trailing zeros...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-30-2010
    Location
    Rockville,MD
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Conditional Number Format for varying decimal places

    I know that I will need number format "0.00", "0.000" or "0.0000" depending on how any decimal places the number has when formatted as text. There's no way to set the appropriate number format based on a conditional format on the column?

    Thanks again

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Number Format for varying decimal places

    I mean you if you want to see trailing zeroes in varying number of decimals, you will have to go to each cell and manually change format through Format|Cells|Number menu.

    You may be able to do it with macros, but you said no macros..

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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