Share via

Condintional Format in Dynamic Chart

Anonymous
2013-04-09T13:28:30+00:00

I need help getting conditional formatting to correctly update the format of data labels.  I have a chart with dynamic values populated using vlookup.  The formatting for the x-axis values is also dynamic, using conditional formatting to switch from percent to whole numbers depending on what data the vlookup returned.  The conditional formatting works fine in the cells of the spreadsheet, correctly switching between percent values and whole numbers.  However, within the chart, the data lables do not change properly, even though the 'linked to source' box is clicked.  The data label format on the chart remains as whatever the background format of the cells are in the spreadsheet, even when conditional formatting is producing the correct format. 

Can you tell me how to get the chart's data labels to respond to the conditional formatting of the cells feeding it?

Thank you!

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2013-04-10T13:03:17+00:00

The linked to source refers to the cells direct formatting and not the result of conditional testing.

To have the data labels reflect the correct formatting you will need to use named range to reference the cells.

Example file. You will need to down load it due to limitation of Excel web apps.

https://skydrive.live.com/redir?resid=EAD861C14BCC56B7!728

Was this answer helpful?

0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2014-05-02T11:12:53+00:00

    @David,

    Is that the example I provided does not work or your implentation of the technique?

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2014-05-02T10:45:01+00:00

    Hi there, 

    this didn't work for me - the graphs are still not dynamically updating the label formats. 

    any thoughts?

    thanks

    David

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2013-04-11T16:16:52+00:00

    Thank you Andy --this resolves the issue.  I see the reason this works is because the range naming feature allows different cell ranges to populate the graph depending on what data type is selected.  This does eliminate the need for any conditional formatting. 

    Thank you for your fast help!

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2013-04-10T11:14:09+00:00

    Was this answer helpful?

    0 comments No comments