

A Visual Basic window will open and click on the Insert tab.

Let us consider the following data set to apply a VBA Code to create a Scatter Plot.We will apply a VBA Code in Excel to create a Scatter Plot to visualize the connection between two variables. Applying VBA Code to Create a Scatter Plot in Excel with 2 VariablesĪpplying the VBA Code to demonstrate a relationship between two sets of quantitative data is a very convenient way.
#Xy scatter plot excel how to
Read More: How to Create a Scatter Plot with 4 variables in Excel (with Quick Steps)Ģ.

Using Charts Option to Create a Scatter Plot in Excel with 2 VariablesĪ scatter graph shows two connected quantitative variables, as we have already explained. In the given data set, we arrange the data in order to visualize the link between the advertising expenditure for a certain month as an independent variable and the number of products sold as a dependent variable by using the Charts option and applying the VBA Codes.ġ. The correlation is larger when the data points fall more closely together along a straight line.Ģ Easy Approaches to Create a Scatter Plot in Excel with 2 Variables A scatter plot’s primary use is to display the strength of the correlation between the two variables. Values at the point where the x and y-axis meet are shown as single data points on the graph. The dependent variable is typically on the y-axis, whereas the independent variable is typically on the x-axis. Both the horizontal and vertical axes of a scatter graph are value axes used to plot numerical data. The association between two variables is depicted on a two-dimensional chart known as a scatter plot, also known as an X-Y graph.
