+ Reply to Thread
Results 1 to 2 of 2

Help with custom format for axis numbers in chart

  1. #1
    Registered User
    Join Date
    10-19-2016
    Location
    Cork, Ireland
    MS-Off Ver
    Office 2016 (Office 365)
    Posts
    10

    Help with custom format for axis numbers in chart

    Hi. I am looking to have a chart axis display large numbers in shortened forms such as "k" and "m" but was having some issues in getting the format code right.

    I got as far as using [>999999] #,,"M";#,"K" to get the numbers displaying as K and M however there are 2 issues:

    - "0" is displayed as "K" on the axis and I wasn't sure what to add to the code to alter the 0 number

    - Once you get to 1M there are no decimal places for it so the axis displays as "800K 900K 1M 1M 1M". Is there any way to have it display K as is but change the M to display as 1.0M 1.1M 1.2M etc.?

    Is there a better code/method to use altogether perhaps? The numbers on the charts run from about 20k to 5M making it a little awkward to display the numbers well.

    Any help would be greatly appreciated. Thanks

    Kind Regards,
    Karl

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

    Re: Help with custom format for axis numbers in chart

    I will recommend that you refer to this page https://support.office.com/en-us/art...2-09fab54be7f4
    It should be as easy as adding another condition for the 0 (<=999??) values, and adding placeholders for the additional decimal places you want to display.

    Perhaps [>999999] #.#,,"M";[>999]#.#,"K";0
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. [SOLVED] Custom y Axis on a Pivot Chart
    By cinstanl in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-16-2016, 04:45 AM
  2. X-Axis Custom Format
    By statue023 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-05-2015, 05:26 PM
  3. [SOLVED] Custom Axis Format (Millions with Decimal)
    By pickslides in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-22-2015, 11:35 PM
  4. [SOLVED] Format numbers on the x-axis of Chart
    By maacmaac in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-27-2014, 03:31 PM
  5. Replies: 2
    Last Post: 02-07-2014, 12:18 PM
  6. Custom formatting chart axis
    By ABSTRAKTUS in forum Excel General
    Replies: 3
    Last Post: 05-30-2010, 01:13 AM
  7. Replies: 1
    Last Post: 10-07-2009, 08:11 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