Except for the lines or columns in a chart, you can also use the markers in a scatter chart to show data and information. In this article, we will show you how to create and work with the scatter chart.
The scatter chart is a very special chart in Excel. Some special markers in the chart will represent the data in your worksheet. With those obvious markers, you can easily analyze the data and information. Below allow us to show you how to create such a chart.
Create a Scatter Chart
- Click a cell within the range in your worksheet. Besides, you can also click the whole range.
- And then click the tab “Insert” in the ribbon.
- After that, click the button “Scatter” in the toolbar.
- In the drop-down list, choose the scatter chart.
And then the chart will appear in the worksheet. It is very easy to create such a chart in your worksheet.
Modify the Scatter Chart
In this part, we will show you how to modify this scatter chart.
- Delete the gridlines in the chart.
- And then right click one data series in the chart.
- In the pop-up menu, choose the “Format Data Series”.
- In the new window, choose the option “Marker Options”.
- And then choose the “Built-in” option.
- Next choose a type for the marker.
- Change the size if you need.
- And then change the fill color for the markers of the series according to your need.
- Now repeat the steps and modify the markers for another series.
- In addition, you can also make other modifications according to your need. You can also refer to the example in the image below.
Locate a Marker
When there are many markers in the chart, it will be hard for you to locate a certain data point. In order to solve this problem, you can use the method in this part.
- Press the shortcut keys “Alt +F11” on the keyboard.
- And then insert a new module into the Visual Basic editor.
- Now input the following codes into the module:
Sub LocateMarker() Dim nTargetSeries As Integer, nPoints As Integer 'If the cell is not in the range, exit the current macro If Intersect(Range("B2:C13"), Selection) Is Nothing Then Exit Sub 'Initialization nTargetSeries = Selection.Column - 1 nPoints = Selection.Row - 1 ActiveSheet.ChartObjects("Chart 1").Activate ActiveChart.SeriesCollection(nTargetSeries).Select ActiveChart.SeriesCollection(nTargetSeries).Points(nPoints).Select End Sub
In this module, you need to change certain elements, which include the target range, the chart name and other elements.
- Click the tab “Developer” in the ribbon.
- And then click the button “Insert”.
- In the menu, choose the option “Button”.
- Next click in the worksheet.
- In the “Assign Macro” window, choose the module.
- And then click the button “OK”.
Now you have finished the setting. When you click a cell in the worksheet and then click the button, the corresponding marker in the chart will also be selected. For example, we click the cell B7 and the corresponding marker in the chart will be selected.
Therefore, you can use this macro to solve the problem.
Repair Excel Problems on Your Own Computer
Whenever you experience Excel corruption, you need to repair your files as soon as you can. There are many methods that you can take for your files. But in order to protect the security, you’d better repair Excel problems on your own computer. Our Excel repair tool is able to repair corrupt Excel xlsx data on your own computer. You will never need to concern yourself with the Excel security.
Anna Ma is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including repair corrupt docx document and outlook repair software products. For more information visit www.datanumen.com