The picture above shows a nautical chart that has custom data labels, they are linked to specific cell values.

This means that you can build a dynamic nautical chart and automatically alter the labels depending on what is shown on the nautical chart.

I have demonstrated how to build dynamic data labels in a previous article if you lot are interested in using those in a chart.

In a post from March 2022 I demonstrated how to create Custom information labels in a chart.

Unfortunately, that technique worked merely for bar and column charts.

You lot can't apply the same technique for an x y scatter nautical chart, as far as I know.

What's on this page

  1. How to apply custom data labels in Excel 2022 and afterward versions
    1. Video
    2. How to add data characterization shapes
    3. How to rearrange information labels
    4. Get Excel file
  2. Workaround for before Excel versions
    1. Excel Macro - Apply custom data labels
    2. Where to copy the code
    3. How to use macro
    4. Get Excel file

Luckily the people at Microsoft take heard our prayers.

They take implemented a feature into Excel 2022 that allows yous to assign a cell to a chart data point characterization a, in an x y scatter chart.

I volition demonstrate how to do this for Excel 2022 and afterwards versions and a workaround for earlier versions in this article.

1.i How to apply custom data labels in Excel 2022 and later versions

This example chart shows the altitude between the planets in our solar organisation, in an x y scatter chart.

x y scatter chart - custom data labels3

The beginning 3 steps tell you how to build a scatter nautical chart.

  1. Select cell range B3:C11
  2. Become to tab "Insert"
  3. Printing with left mouse button on the "besprinkle" button
  4. Press with correct mouse button on on a nautical chart dot and press with left mouse button on on "Add Information Labels"
  5. Press with correct mouse button on on any dot over again and press with left mouse button on "Format Information Labels"
  6. A new window appears to the correct, deselect X and Y Value.
    Format data labels excel 2022
  7. Enable "Value from cells"
    data label range excel 2022
  8. Select prison cell range D3:D11
  9. Press with left mouse push button on OK

This is what the chart shows, as you can meet y'all need to manually rearrange the information labels and add data label shapes.

x y scatter chart excel 365

Dorsum to summit

1.i Video

The following video shows you how to add data labels in an X Y Scatter Nautical chart [Excel 2022 and afterwards versions].

Dorsum to acme

Learn more

Axis | Chart Area | Chart Title | Centrality Titles | Centrality lines | Nautical chart Legend | Tick Marks | Plot Area | Information Series | Data Labels | Gridlines

one.2 How to add information characterization shapes

  1. Press with correct mouse button on on a data characterization.
  2. Press with mouse on "Alter data characterization shapes".
  3. Select a shape.

Back to acme

1.3 How to change data characterization locations

You can manually press with left mouse push on and drag data labels every bit needed. You can likewise let excel change the position of all data labels, choose between center, left, right, in a higher place and below.

  1. Press with correct mouse button on on a data label
  2. Press with left mouse button on "Format Data Labels"
    Change label position excel 13
  3. Select a new label position.

Back to elevation

Back to height

Learn more

Secondary Axis | Linear trendline | Logarithmic Trendline | Moving Average | Error Bars

2. Workaround for earlier Excel versions

This workaround is for Excel 2022 and 2007, it is all-time for a small number of chart data points.

  1. Press with left mouse button on twice on a label to select it.
  2. Press with left mouse button on in formula bar.
  3. Type =
  4. Utilise your mouse to press with left mouse push on a jail cell that contains the value you want to use.
  5. The formula bar changes to maybe =Sheet1!$D$3
  6. Echo step i to 5 with remaining data labels.

Change the value in prison cell D3 and see how the information label on the chart instantly changes.

The following blithe picture demonstrates how to link a cell value to a specific chart data bespeak.

Add custom data labels in a x y scatter chart1

If your nautical chart has many data points this method becomes quickly wearisome and time-consuming.

I accept automated these steps for you in a macro that you lot can read nearly below, there is likewise an case workbook that you can get.

Learn more

Column | Bar | Line | Area | Pie | Doughnut | Scatter | Bubble |  Funnel | Stock | Candlestick | Surface | Radar | Map

Dorsum to meridian

2.one Apply custom data labels (VBA Macro)

This macro adds a jail cell reference to each data characterization, the value in the referenced cell is then linked to the label. If yous change the value in the jail cell the characterization value changes as well.

'Name macro Sub AddDataLabels()  'Enable error handling On Error Resume Next  'Display an inputbox and inquire the user for a cell range Ready Rng = Application.InputBox(prompt:="Select cells to link" _ , Title:="Select information label values", Default:=ActiveCell.Address, Type:=viii)  'Disable error handling On Error GoTo 0  With ActiveChart          'Iterate through each series in chart     For Each ChSer In .SeriesCollection          'Save chart point to object SerPo         Set SerPo = ChSer.Points          'Save the number of points in chart to variable j         j = SerPo.Count          'Iterate though each point in current series         For i = 1 To j              'Enable information label for current chart point             SerPo(i).ApplyDataLabels Type:=xlShowValue              'Save cell reference to chart betoken             SerPo(i).DataLabel.Formula = "=" & ActiveSheet.Name _             & "!" & Rng.Cells(i).Address(ReferenceStyle:=xlR1C1)         Next     Next End With End Sub        

Larn more

Waterfall | Treemap | Sunburst | Histogram | Pareto | Box & Whisker

Back to top

ii.2 Where to put the code?

  1. Re-create macro (CTRL + c)
  2. Go to the VB Editor (Alt + F11)
  3. Printing with left mouse button on "Insert" on the elevation menu.
  4. Press with left mouse button on "Module" to insert a lawmaking module to your workbook.
  5. Paste code to the module. (CTRL + five)
  6. Return to Excel.
  7. Save your workbook equally a macro-enabled workbook (*.xlsm file).
    If you don't the macro will be gone the next fourth dimension yous open the same workbook.

Back to acme

Larn more

Arrow | Normal distribution | Equation | Comparison | Heat map | Gantt

2.3 How to use macro

  1. Select the x y scatter nautical chart.
  2. Printing Alt+F8 to view a listing of macros available.
  3. Select "AddDataLabels".
  4. Press with left mouse button on "Run" button.
  5. Select the custom data labels you lot want to assign to your chart.
    Make sure you select as many cells as there are data points in your chart.
  6. Press with left mouse button on OK button.

Back to top

Back to top

Recommended manufactures

How to add horizontal line to chart

Add together pictures to a nautical chart axis

This article demonstrates how to insert pictures to a chart axis, the picture above shows a column nautical chart with country […]

Add together pictures to a chart centrality

How to create a dynamic chart

Dynamic Gantt charts

Today I am going to bear witness yous how to create a dynamic Gantt nautical chart in excel 2007. A Gantt nautical chart helps […]

Dynamic Gantt charts

Color chart columns based on cell color