Create Graph in Excel with X and Y Axis: Step-by-Step Guide

Bobby Jul 13, 2026

Creating a graph in Excel is an essential skill for data visualization and analysis. This guide will walk you through the process of creating a graph with x and y axes, a powerful tool for understanding and communicating trends in your data.

How To Create Charts and Graphs in Excel
How To Create Charts and Graphs in Excel

Before we begin, ensure you have a dataset with two columns: one for the independent variable (x-axis) and one for the dependent variable (y-axis). For instance, you might have a time (x-axis) and corresponding sales (y-axis) data.

How to Make a Graph from Excel - Lindsay Bowden
How to Make a Graph from Excel - Lindsay Bowden

Understanding Your Data

Before plotting, it's crucial to understand your data. Identify what will go on the x and y axes. In our sales example, time will be on the x-axis, and sales will be on the y-axis. This arrangement shows how sales change over time.

A step-by-step guide to making a graph on Excel
A step-by-step guide to making a graph on Excel

It's also important to consider the type of chart that best represents your data. For our purposes, a line graph is suitable as it shows trends over time.

Preparing Your Data

How to make line chart or graph in Excel
How to make line chart or graph in Excel

nehmake your data table the active cell selection by clicking on the top-left cell (usually 'A1') and dragging down to the last row of your data.

If your data isn't structured as a table, you can create one by selecting any cell in your data, then going to the 'Home' tab, clicking 'Format as Table', and choosing a table style. This makes it easy to manage and filter your data.

Creating the Graph

the most useful excel chart info sheet
the most useful excel chart info sheet

To create a graph, select the data you want to plot. In our case, select the entire data table. Go to the 'Insert' tab, then in the 'Charts' group, click on the type of chart you want to create. For a line graph, click on 'Line'.

A menu will appear. Choose the graph type that best fits your data. For our time-series data, 'Line with Markers' is a good choice. Click 'OK'.

Formatting Your Graph

a chart with numbers and prices for products in each section, including $ 1, 500 to $ 3, 000
a chart with numbers and prices for products in each section, including $ 1, 500 to $ 3, 000

After creating the graph, you can format it to ensure it's easy to read and visually appealing. To edit the graph, click on it to highlight it, then go to the 'Design' tab in the 'Chart Tools' group.

Here, you can make various changes:

Excel: How to create a dual axis chart with overlapping bars and a line
Excel: How to create a dual axis chart with overlapping bars and a line
How to Make a Line Graph in Excel
How to Make a Line Graph in Excel
How to create Graph  in Microsoft Excel
How to create Graph in Microsoft Excel
Excel Actual Vs Target - Multi type charts with Subcategory axis and Broken line graph - PakAccountants.com
Excel Actual Vs Target - Multi type charts with Subcategory axis and Broken line graph - PakAccountants.com
Excel graph
Excel graph
Free Graph Paper with X and Y Axis PDF – Education Board Printable
Free Graph Paper with X and Y Axis PDF – Education Board Printable
How to Make a Graph in Excel - 4 Quick Ways To Become a Chart Pro
How to Make a Graph in Excel - 4 Quick Ways To Become a Chart Pro
How to Make a Line Graph in Excel
How to Make a Line Graph in Excel
How to Add a Secondary Axis in Excel Charts (Easy Guide)
How to Add a Secondary Axis in Excel Charts (Easy Guide)
  • Add a Chart Title and Axis Titles to label your x and y axes.
  • Customize the axes by adjusting their scales, adding gridlines, or changing their colors.
  • Format the data series by changing their colors, marker styles, or line widths.

Refining Your Graph

To further refine your graph, you can add data labels, arrows, or trendlines. These features can help highlight key data points or tell a specific story with your data.

Remember, the goal of data visualization is to communicate insights effectively. Always consider your audience and what they need to understand from your graph.

Updating and Simplifying

As your data changes, your graph should too. Excel allows you to update your graph whenever the data changes. Select the data, then go to the 'Design' tab, click 'Update Chart' in the 'Prepare' group.

If your graph becomes too cluttered, consider creating separate graphs for different subsets of data. This can simplify your visuals and make them more understandable.

Creating graphs in Excel is a skill that takes practice, but with these steps, you should be well on your way to creating engaging, informative visuals. The next time you have data to share, consider how a graph can help tell your story.