+ Reply to Thread
Results 1 to 4 of 4

display/not display numbers to right of decimal

  1. #1
    Registered User
    Join Date
    07-22-2004
    Posts
    89

    display/not display numbers to right of decimal

    I have a formula in a cell producing results:
    e.g. - 40.00
    e.g. - 40.25

    If the result is an integer, I want it displayed as "40", not "40.00".

    Hence, I would like to display:
    40
    40.25

    Is there an easy way to do this, either through formatting the cell, or a formula tweak?

    Thanks.

    - jim
    Last edited by James C; 10-13-2005 at 03:19 PM. Reason: typo correction

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Try formatting your cells as General. Does this help? You may have set your format to Number, which, by default, places 2 decimals in <every> answer. You can alter the default 2 decimals anywhere from zero to 30, but this well impact every entry whether it is an integer or not.
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Registered User
    Join Date
    07-22-2004
    Posts
    89

    thanks

    Swatsp0p,

    that did it
    thanx very much

    Jim

  4. #4
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    I'm glad it worked for you. Thanks for the feedback, it is always appreciated.

    Cheers!

+ 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