+ Reply to Thread
Results 1 to 3 of 3

Custom Cell Style Format [>=1000000]#,," B";[>=1000]#," M";0" K"

  1. #1
    Registered User
    Join Date
    03-23-2015
    Location
    UK
    MS-Off Ver
    2016
    Posts
    27

    Custom Cell Style Format [>=1000000]#,," B";[>=1000]#," M";0" K"

    Can anyone help me with the above custom cell format?

    The value I'm evaluating has already been divided by 1000, so...

    If the the number is > 1,000,000 (#,000,000 x 1000) then the number will be appended with an "B" to the end.
    If the the number is > 1,000 (#,000 x 1000) then the number will be appended with an "M" to the end.
    If the the number is > 1 (# x 1000) then the number will be appended with an "K" to the end.

    Everything works great but I don't want the value to be rounded up if its less than 1.

    I've tried adding:
    Please Login or Register  to view this content.
    but the editor really didn't like that!


    Any help would be greatly appreciated.

    Thanks.
    Last edited by pizzaboyuk; 07-05-2018 at 09:32 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Custom Cell Style Format [>=1000000]#,," B";[>=1000]#," M";0" K"

    Did you try:
    0.0 " K"?
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    03-23-2015
    Location
    UK
    MS-Off Ver
    2016
    Posts
    27

    Re: Custom Cell Style Format [>=1000000]#,," B";[>=1000]#," M";0" K"

    Thanks Ben, kinda gave up on finding an answer to this...

    The whole point of the cell format was that I'd only get full numbers (no decimal places shown), just so it would be simpler to look at in a huge list.

    Nevermind... thanks for the input!

+ 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: 5
    Last Post: 02-05-2019, 12:03 AM
  2. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  3. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  4. [SOLVED] Convert from "general" (YYYYMMDD) to specific "custom" format (YYYY.MM.DD)
    By Ella_p in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-10-2013, 02:23 AM
  5. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  6. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  7. Replies: 2
    Last Post: 11-01-2012, 04:35 PM

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