How to Graph an Equation in Excel Without Data – 4 Steps

 

A simple linear equation: y = mx + c will be used. This equation will return straight lines when plotted on a graph. Here, x is an independent variable, whereas y depends on x. c is a constant, known as the intercept of y. m is the gradient, also known as the slope of the straight line.

To graph the equation without a dataset:

STEP 1 – Input Equation

  • Enter m, x, c, and y in B4:E4.

Input Equation


STEP 2 – Apply a Formula for Calculation

Create a formula to calculate the y variable.

  • In E5, use the formula:
=(B5*C5)+D5
  • Press Enter.

It’ll return 0.

Apply Formula for Calculation


STEP 3 – Graph Equation

Insert a graph.

  • Select C4:C9.
  • Press and hold Ctrl.
  • Select E4:E9.

Graph Equation

  • Go to the Insert tab.
  • Click Recommended Charts.

  • In the Insert Chart dialog box, select All Chart.
  • Click X Y (Scatter).
  • Choose Scatter with Smooth Lines and Markers.
  • Click OK.

  • The graph is displayed (as the dataset is empty, you won’t see any plottings).

graphing an equation in excel without data


STEP 4 – Enter Data

  • Enter the value of m as 2.
  • Enter values for the independent variable x.
  • Enter the value of c as 5.
  • Drag down the Fill Handle to see the result in the rest of the cells.
  • The output for y will be returned.

Input Data


Final Output

A linear line graph will be displayed as shown below.

Final Output

Read More: How to Graph a Linear Equation in Excel


Download Practice Workbook

Download the following workbook to practice.


Related Articles


<< Go Back to Plot an Equation | Excel Charts | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Aung Shine
Aung Shine

Aung Shine completed his bachelor’s in Electrical and Electronics Engineering from Bangladesh University of Engineering and Technology. It has been almost 2 years since he joined SOFTEKO and actively working on the ExcelDemy project. Currently he works as a Team Leader where he guides his team members to create technical content. He has published 150+ articles and reviewed 50+ articles. He has also solved various user problems before. He has interests in Data Analysis, Power Query, Advanced Excel,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo