+ Reply to Thread
Results 1 to 2 of 2

Thread: Hiding Decimals

  1. #1
    Registered User
    Join Date
    12-08-2011
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2010
    Posts
    1

    Question Hiding Decimals

    Hello,

    I am trying to produce a number format that will do the following...

    4700 = 4.7K
    4000 = 4K
    4700000 = 4.7M
    4000000 = 4M
    470 = 470

    I'm using the following formula which ALMOST works...

    [>=1000000]0.#,,"M";[>=1000]0.#,"K";0.#
    The only problem is that in the case where a K or M is shown and there is a zero decimal place, then it shows the decimal. I want it hidden.

    ex. 4000 shows as 4.K instead of 4K

    Any ideas on how to hide the decimal in this condition?

    Thanks,

    Ian

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

    Re: Hiding Decimals

    Alas, you can't set enough conditions in a custom format to do that.
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0