+ Reply to Thread
Results 1 to 5 of 5

Tiered Custom Number Format Based on Value

  1. #1
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Tiered Custom Number Format Based on Value

    Afternoon all,

    Is it possible to create the following tiered custom number format based on the following criteria:

    >=1m = 1.0m
    >0 = 1.0k
    0 = Blank
    <0 = (1.0k)
    <=1m = (1.0m)

    Thanks in advance,

    Snook
    Last edited by The_Snook; 10-18-2016 at 05:36 AM.

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

    Re: Tiered Custom Number Format Based on Value

    Custom number formatting is limited in the number of conditions it can handle -- perhaps even being limited to 2 conditions. Your description says that you want 5 conditions. You can use regular conditional formatting (https://support.office.com/en-us/art...B-F1951FF89D7F ), where you have more flexibility in creating conditions and formats.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Tiered Custom Number Format Based on Value

    Cheers MrShorty, I've just tried to use that approach but I'm encountering an issue with the negative numbers. I'd like them to be shown with brackets but Excel is showing them with a minus as well the brackets despite my custom format not requesting the minus symbol (example attached).

    Any suggestions?

    Snook

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Tiered Custom Number Format Based on Value

    You have only supplied one format section so it is applied to all number values along with the defaults- which include - symbols for negative values. Your format code could be
    #,##0.0,"k";(#,##0.0,"k")
    instead.

    In truth all you require is one CF rule:
    =ABS(C3)>=1000000
    with a format code like this
    #,##0.0,"k";(#,##0.0,"k")

    and then apply a regular custom number format to the cells to deal with the other conditions:
    #,##0.0,"k";(#,##0.0,"k");;
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  5. #5
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Tiered Custom Number Format Based on Value

    Bingo bongo! Absolutely bob on as always brother!

    Cheers,

    Snook

+ 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. if statement based on custom number format of a cell
    By anandvh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-09-2016, 03:47 PM
  2. Custom Number Format
    By HospitalOfficer in forum Excel General
    Replies: 5
    Last Post: 07-30-2015, 06:17 PM
  3. Replies: 3
    Last Post: 04-27-2015, 09:41 AM
  4. Need formula or code to convert number(s) from custom format to number format
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-12-2015, 07:44 PM
  5. how do I add phone number format as a permanent custom format?
    By frustratedagain in forum Excel General
    Replies: 3
    Last Post: 02-03-2006, 11:52 PM
  6. Format a cell with a custom number format
    By Armor in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-29-2006, 07:30 PM
  7. Custom number format always defaults last number to 0.
    By scubadave in forum Excel General
    Replies: 2
    Last Post: 06-15-2005, 06:05 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