+ Reply to Thread
Results 1 to 6 of 6

Number Format: One Thousand = 1K, One Million = 1M

  1. #1
    Registered User
    Join Date
    05-18-2009
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    34

    Number Format: One Thousand = 1K, One Million = 1M

    How would I custom format numbers to to be written as ^ title?

    One Thousand = 1K

    One Million = 1M

    etc

    It needs to be able to format any cell, it can't just be a specific cell. It can either be 1K, 1M, or 1T etc.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Number Format: One Thousand = 1K, One Million = 1M

    The custom number format
    [>999999]#,,"M";[>999]#,"K";#

    will do the K and M formats, but I can't get a third conditional into the number format.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    05-18-2009
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Number Format: One Thousand = 1K, One Million = 1M

    So far I have [>=1000000]#.#0,,"M";[>=1000]#.#0,"K";0

    But I need to get Billions and Trillions ...

  4. #4
    Registered User
    Join Date
    05-18-2009
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Number Format: One Thousand = 1K, One Million = 1M

    Quote Originally Posted by mikerickson View Post
    The custom number format
    [>999999]#,,"M";[>999]#,"K";#

    will do the K and M formats, but I can't get a third conditional into the number format.
    Yours is good, but I can't round off.

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Number Format: One Thousand = 1K, One Million = 1M

    I think there's a limit to the number of conditions in a number format.
    Would a VB solution be acceptable?

  6. #6
    Registered User
    Join Date
    05-18-2009
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Number Format: One Thousand = 1K, One Million = 1M

    Quote Originally Posted by mikerickson View Post
    I think there's a limit to the number of conditions in a number format.
    Would a VB solution be acceptable?
    Of course! Anything that works

    I really want to clean up my spreadsheet. All these zeroes hurt my eyes! lol

+ 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