+ Reply to Thread
Results 1 to 4 of 4

Custom number format not working for negative numbers

  1. #1
    Registered User
    Join Date
    05-07-2015
    Location
    herts, england
    MS-Off Ver
    2016
    Posts
    29

    Custom number format not working for negative numbers

    Hello,

    I'm having trouble getting to grips with Excels custom number formats, and haven't been able to find an answer...

    I'm using the following custom format to shorten values with M (million) and K (thousand):

    [>999999]£#.#,,"M";[>999]£#,"K";£#

    This works well, unless my values are negative, in which case it doesn't work. I've tried to edit the formula to work for negative numbers too, but keep failing. Can anyone help please?

    Thanks

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Custom number format not working for negative numbers

    Hi,

    This article http://excelribbon.tips.net/T010227_...om_Format.html suggests it isn't possible.

    I'm trying to rack my brains since I think I've seen something in the past which allowed you to include something like [<999999] etc..

    Maybe someone else will chip in. If I find anything I'll let you know.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: Custom number format not working for negative numbers

    Richard and his link are correct, you can only use 3 or 4 conditions in number format codes. What you are describing would require 5. As suggested by his link, the solution is to use regular conditional formatting, which is not as limited as number format codes.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    05-07-2015
    Location
    herts, england
    MS-Off Ver
    2016
    Posts
    29

    Re: Custom number format not working for negative numbers

    ok, good to know I shouldn't keep trying to modify the custom number format.
    Thanks

+ 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: 01-08-2015, 04:55 PM
  2. Replies: 1
    Last Post: 12-15-2014, 08:46 PM
  3. Custom Number Format not working as intented
    By Alex E. in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-10-2014, 05:07 AM
  4. Replies: 1
    Last Post: 10-07-2009, 08:11 PM
  5. Replies: 1
    Last Post: 11-20-2008, 01:52 AM

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