+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting of Numbers on Axis

  1. #1
    Forum Contributor
    Join Date
    04-13-2010
    Location
    England
    MS-Off Ver
    Office 2016 365
    Posts
    211

    Red face Conditional Formatting of Numbers on Axis

    Hi everyone,

    Just a question on what syntax to use for axis formatting where the value of the axis can change from a few hundred quid to 250 million!

    Currently i have a custom format of £0.0,,"m"

    But this is lost when the source data goes down through the values, is it possible to come up with a custom format that will do the following?

    10,000,000 to 250,000,000 = £10m, £250m
    1,000,000 to 10,000,000 = £2.4m, £8.8m
    10,000 to 999,000 = £10k, £150k
    1,000 to 9,999 = £1.4k, £8.6k
    0 to 999 = £100, £800

    I've been having a go but am struggling to crack it. Any help?

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Conditional Formatting of Numbers on Axis

    Try a format of

    [>=1000000]£0.0,,"m";[>=1000]£0.0,"k";0

  3. #3
    Forum Contributor
    Join Date
    04-13-2010
    Location
    England
    MS-Off Ver
    Office 2016 365
    Posts
    211

    Re: Conditional Formatting of Numbers on Axis

    Thanks Bob,

    That'll pass muster i think. I did try to add a third element but excel wasn't having anything of it, is two the maximum number of arguments it can take?

    [>=10000000]£0,,"m";[>=1000000]£0.0,,"m";[>=1000]£0.0,"k";0

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Conditional Formatting of Numbers on Axis

    Yep, 'fraid so.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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