• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

conditional label position

Greg Wheatley

New Member
I would like to conditionally format the data labels position to be above the plot line in a scatter plot if a certain cell contains 'true' and below the plot line if that cell contains 'false'. Please advise with preferably a non-VBA solution. Thank you.
 
Greg

Firstly, Welcome to the Chandoo.org Forums

To do what you propose I would add 2 Dummy Series
So you will have 1 series for the data, one where it is True and One series where it is False

The series will have the same range as the data series but will have the values #N/A! errors using a Formula

Then add a second and third series to the chart with the Dummy Series
Add the Labels to the Dummy Series above the Line & Below the line
Then set the line color of the Dummy data to None

upload_2017-10-6_15-3-55.png

see attached file

No VBA Required
 

Attachments

  • Conditional Labels in a Chart.xlsx
    15 KB · Views: 4
I misread the question but now provide a quick update

Use the same technique just link the True/False Label columns to the yellow Data validation cell

upload_2017-10-7_10-10-31.png\
or
upload_2017-10-7_10-12-11.png

See attached file:
 

Attachments

  • Conditional Labels in a Chart.xlsx
    15.2 KB · Views: 4
Hi mate. I am having some issues with your solution. Please have a look at my modification to your excel sheet. When you switch between true and false, the labels disappear. I have tried this solution http://www.excel-easy.com/examples/iferror.html but that disrupts the function of your solution. Any suggestions? I can't reformat the labels each time I use the sheet as I want to lock up the sheet for others to use. thanks. Greg.
 

Attachments

  • Conditional Labels in a Chart - Copy.xlsx
    16.8 KB · Views: 2
upload_2017-11-8_12-57-36.png
upload_2017-11-8_12-58-0.png

see attached file

If there is still a problem, what version of Excel are you using ?
 

Attachments

  • Conditional Labels in a Chart.xlsx
    16.7 KB · Views: 3
So delete the Labels and remake them on your PC
Don't try and fix the existing labels
then save the file and try again
 
Back
Top