+ Reply to Thread
Results 1 to 3 of 3

Number Formatting - disply values >1 as integer, values <1 as decimal and no zeros

  1. #1
    Registered User
    Join Date
    05-16-2016
    Location
    Bulgaria
    MS-Off Ver
    2010
    Posts
    2

    Number Formatting - disply values >1 as integer, values <1 as decimal and no zeros

    Hi everyone,

    I need to create a number formatting that shows values greater then 1 as integer and positive values less then 1 as decimal. (I don't have negative values).
    The problem is I have zero values which I don't want to display (in the sheet a formula summarises various values from other sheets. For most cells the formula result is zero.) At the moment I am using this number formatting: 0;-0;;@ but it only shows integers.
    Is there a way to modify it as described?

    Thank you!

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Number Formatting - disply values >1 as integer, values <1 as decimal and no zeros

    One of my most commonly used help files: https://support.office.com/en-us/art...2-09fab54be7f4
    As explained in the help file, you can include conditions in your number formats, by enclosing the condition in square brackets. See example and discussion about midway through the help file.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    05-16-2016
    Location
    Bulgaria
    MS-Off Ver
    2010
    Posts
    2

    Re: Number Formatting - disply values >1 as integer, values <1 as decimal and no zeros

    Mr. Shorty, thanks for the tip! Looks like it will do the job, I'll have to read it carefully and play around with the format.

+ 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: 10
    Last Post: 09-02-2015, 07:46 PM
  2. Decimal number changes to integer
    By nickjnford in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2013, 06:32 AM
  3. vba userform - how to sum values decimal and integer?
    By homasa in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 03-25-2013, 05:52 AM
  4. Replies: 5
    Last Post: 01-28-2013, 07:29 PM
  5. descriminate string(letters) values from integer/long (number) values
    By ag273n in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-21-2013, 03:12 AM
  6. Formatting query, incremental values with leading zeros
    By shockeroo in forum Excel General
    Replies: 5
    Last Post: 04-08-2009, 08:28 AM
  7. [SOLVED] excel-enter integer number and get two decimal places
    By Jack H in forum Excel General
    Replies: 2
    Last Post: 10-16-2005, 05:05 PM

Tags for this Thread

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