+ Reply to Thread
Results 1 to 7 of 7

Conditional Data Label border

  1. #1
    Registered User
    Join Date
    08-07-2013
    Location
    Cardiff
    MS-Off Ver
    Office 365
    Posts
    86

    Conditional Data Label border

    Hi

    Is it possible to only have a data label border when there is data?
    I have a dynamic column chart with 2 series, and then a 3rd series as an 'invisible' line chart - so as just to show its data labels a little above the 2nd series.
    These data labels I have customised to look at a range of formulas to display % change.

    Some data labels are blank however (ie formula result = ""). But they still show the border, which I do not want.

    Is there a way around this (I'm guessing vba if anything?)

    Any help is most appreciated. Cheers

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    19,945

    Re: Conditional Data Label border

    If you make the data value for those data points =NA() then the data label should not appear.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    08-07-2013
    Location
    Cardiff
    MS-Off Ver
    Office 365
    Posts
    86

    Re: Conditional Data Label border

    Hi Andy
    Thanks for this. Not quite what I need though.
    Is does 'hide' the data label value, but the border still appears.
    Cheers

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    19,945

    Re: Conditional Data Label border

    did you apply the NA to the data label information or the data point.

    Can you post example file?

  5. #5
    Registered User
    Join Date
    08-07-2013
    Location
    Cardiff
    MS-Off Ver
    Office 365
    Posts
    86

    Re: Conditional Data Label border

    Andy,
    Yes I tried in both.
    Attached is a very basic example file. I hope it makes sense, for obvious reasons I've had to simplify it massively.

    Basically 'Dashboard-No borders' is fine. But I ideally (or my CEO!) wants green or red borders around the % Change data labels.
    The way I've built this (using dummy series to custom the positioning of the data labels), means even blank data lebels - the border still shows.

    Thanks for the help...
    Attached Files Attached Files

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    19,945

    Re: Conditional Data Label border

    You need to apply the same test that your data labels use to the actual data point.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-07-2013
    Location
    Cardiff
    MS-Off Ver
    Office 365
    Posts
    86

    Re: Conditional Data Label border

    Excellent!!
    Thank you very much Andy - much appreciated!

+ 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] Conditional border formatting formula (after repeat 5 data)
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-09-2014, 12:02 PM
  2. [SOLVED] Need help : Conditional formatting border line with skip blank data
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2013, 11:27 AM
  3. Conditional data label formats?
    By ThomasCarter in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 08-22-2012, 05:10 PM
  4. Border-/Frameless Data Bars (Conditional Formatting)?
    By Scruff.R in forum Excel General
    Replies: 2
    Last Post: 08-13-2012, 03:02 AM
  5. Change label border color at runtime
    By timspier in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2006, 02:53 AM

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