Dynamically highlight 2 points on a graph...

gidsy

Board Regular
Joined
Jan 13, 2005
Messages
142
Hi,

I have a graph with 2 line series. I would like to highlight in some way 1 data point on each line, either a circle or a change in font colour of the data label.

Which 2 are highlighted depend on the result of 2 formula cells which can changes when I change the inputs for them...

So if the data for 1 series is 1,2,3,4,5,6 and the other is 7,8,9,10,11,12 and the result of the formula in cell A1 is 2 and the result of cell A2 is 10 I want 2 and 10 to highlight in my graph...

The result of A1 and A2 will change and I want the graph's highlighting to change accordingly.

Is this possible?

Thanx in advance...
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Edited at 10:55

This is one way:

Say you have, in A1:A6, the series 1,2,3,4,5,6, in A7:A12 the series 1,2,3,4,5,6, both series being identical and will be the x-values for the next two series.

In B1:B6, you have the first series, which, per your example, is 1,2,3,4,5,6, and, in B7:B12, you have the second series, 7,8,9,10,11,12.

In D1, you put the first formula, which gives, say, 3
In C1, enter: =IF(D$1=B$1:B$6,0.5,0.1), and copy down to row 6.

In D2, you put the second formula, which gives, say, 10
In C7, enter: =IF(D$2=B$7:B$12,0.5,0.1), and copy down to row 12.

Now, choose a bubble chart. Let us know if this does it for you.
 
Upvote 0

Forum statistics

Threads
1,213,564
Messages
6,114,334
Members
448,567
Latest member
Kuldeep90

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top