Data points in xy scatter chart show wrong labels

Gijs

New Member
Joined
May 29, 2012
Messages
30
I'm trying to attach labels to data points in my xy scatter chart. The label data (names) is in column C, the X and Y values in respectively column D and E. I've researched for solutions, found a macro and included it. So far, so good.

Whilst the macro does attach (name) labels to the data points, it does not provide the correct (name) labels. This is likely caused because I do not use all names for the scatter graph, but make a selection of names through a filter in column C.

  • The graph does present the correct (x&y) data points of column D and E, but the filtered data points don't have the correct (name) labels attached.
  • Instead of attaching the e.g. 6 selected/filtered names from the list of 100 names in column C, the macro picks the 6 names from the top of column C, ignoring the filter selection.
Since I'm totally inexperienced with writing macro's, let alone adjusting them, can anyone help me to fix the macro?

Your help is greatly appreciated.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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