Open In App

How to Make a Line Graph in Excel - Easy Tutorial

Last Updated : 19 Dec, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

Line graphs are a highly valuable tool in Excel, helping users analyze trends and patterns effectively over time. They are widely used for time-series analysis in Excel, allowing a clear visual representation of changes in data. In this guide, you'll learn how to create a line graph in Excel, including steps to build single or multiple line graphs, explore different Excel chart types, and customize line charts to suit your needs. Whether you're preparing a presentation or conducting in-depth analysis, this Excel line chart tutorial will help you turn raw data into insightful visuals.

Disclaimer: Ensure your data is accurate and well-organized to achieve precise and reliable visualizations.

How to  Make a Line Graph in Excel
How to Create a Line Chart in Excel

What is a Line Chart in Excel

A line chart also known as a line graph, is a visual representation that shows a series of data points connected by a straight line. In a line chart, the independent values such as time intervals or categories, are plotted on the horizontal x-axis, while the dependent values, like prices or sales, are plotted on the vertical y-axis. Values that are represented below the x-axis are the negative values. Line graphs are widely used in various fields to track trends and patterns in data over time.

How to Create a Line Chart in Excel

If you’re wondering how to generate a line graph in Excel, follow these simple steps. You can also customize line charts for better visualization:

Step 1: Prepare Your Data

In this step, we will be inserting random sales data for three different courses for the last five years in our Excel sheet. Below is the screenshot of the random sales data that we are going to use for our line chart.

How to  Make a Line Graph in Excel
Prepare Your Data

Step 2: Insert the Line Chart

  • Highlight the Data
  • Go to the Insert tab on the Excel ribbon.
  • In the Charts group, click on the Insert Line or Area Chart dropdown.
  • Choose the 2-D Line Chart option.

Excel will now create a Line Chart that plots:

  • Years on the X-axis.
  • DSA, Java, and AI/ML as separate lines on the Y-axis.

Once we select our desired line chart (Here, Line with Markers). Excel will automatically plot a graph for our dataset.

How to  Make a Line Graph in Excel
Select Data>> Go to Insert Tab >>Select the 2-D Line >> Chart

In the above graph, we can easily visualize the different courses that are sold. In the next step, we will try to format our graph.

Step 3: Customize and Format the Line Chart

We will try to format our graph according to our needs in this step.

Add Chart Title

  • Click on the default Chart Title at the top of the chart.
  • Type a meaningful title like "Line Chart - Courses Sales"
How to  Make a Line Graph in Excel
Change the Graph Title

Add Axis Titles

  • Click on the chart to activate the Chart Elements button (the “+” icon on the chart).
  • Check the Axis Titles box.

Add titles:

  • Horizontal Axis: "Year"
  • Vertical Axis: "Number of Students (or Values)"
How to  Make a Line Graph in Excel
Click on the "Plus" icon

Format Lines and Markers

  • Click on any line in the chart (e.g., the DSA line).
  • Right-click and select Format Data Series.
  • Customize the line color, width, and marker style:
  • Example: Use a solid line with circles as markers for better visibility.
  • Repeat this for the other lines (Java and AI/ML).
How to  Make a Line Graph in Excel
Format Lines and Markers

Add Data Labels

  • Right-click on one of the lines in the chart.
  • Select Add Data Labels.
  • The values will appear at each point on the line.
  • Customize the data label position if needed.

Customize the Legend

  • Click on the legend (showing DSA, Java, AI/ML) to select it.
  • Move the legend to your preferred location (e.g., top, bottom, or right of the chart).
How to  Make a Line Graph in Excel
Add Data Labels and Customize the Legend

Step 4: Finalize the Chart

  • Resize the Chart: Click and drag the edges to resize the chart as needed.
  • Format the Gridlines: Right-click on the gridlines and choose Format Gridlines to adjust their style or remove them.
  • Save the Workbook: Press Ctrl + S to save the Excel file with the chart.

How to Make a Multiple Line Graph in Excel

A Multiple Line Graph (also called a multi-line chart) allows you to compare trends or changes across multiple datasets over time or categories. Here’s a step-by-step guide to create one in Excel:

Step 1: Organize Your Data

Prepare your data in a table format where:

  • The first column contains categories (e.g., years, months, or labels).
  • The following columns contain values for each dataset.
YearSeries 1Series 2Series 3
201730155
2018506010
2019673525
2020406530
2021858025
20221009040

Step 2: Select Your Data

  • Highlight the entire data range, including headers (e.g., A1:B7).
  • This will create a Single series Line Chart in Excel

Step 3: Insert the Single Line Graph

  • Go to the Insert tab on the Excel ribbon.
  • In the Charts group, click the Insert Line or Area Chart dropdown.
  • Choose Line Chart (2-D Line).
How to  Make a Line Graph in Excel
Select the Data>> Go to Insert Tab >> Select the 2-D Chart

Step 4: Add Another Data Series

  • Right-click on the chart and select "Select Data".
  • In the Select Data Source window, click "Add" to add a new data series.
  • For the Series Name, click on the header in cell C2 (e.g., "Sales").
  • For the Series Values, select the data range C3:C14.
  • Click OK to confirm.
  • Click OK again to close the Select Data Source window.
How to  Make a Line Graph in Excel
Right Click >> Choose "Select Data">>Click on "Add">> Add "Series Name" and "Series Value">>Click ok

Note: Similarly you can add multiple lines.

Step 5: Customize and Format the Line Chart

1: Add Chart Title and Axis Titles

  • Click on the Chart Title and type a meaningful title, such as "Trends Over Time".

To add axis titles:

  • Click the chart.
  • Use the Chart Elements button (+) and check Axis Titles.
  • Rename the X-axis as "Years" and the Y-axis as "Values".
How to  Make a Line Graph in Excel
Click on the Add Button >>Check the "Axis Titles" and " Chart Title" Checkbox >> Add the Chart Title and Axis Title

2: Format the Lines

  • Click on any line to select it.
  • Right-click and choose Format Data Series.

Customize:

  • Line Color: Choose a unique color for each series.
  • Line Style: Adjust line thickness or make it dashed.
  • Markers: Add data markers to highlight points on each line.
How to  Make a Line Graph in Excel
Right Click >> Select "Format Data Series"" >> Customize

3: Add a Legend

Excel automatically adds a legend (e.g., Series 1, Series 2, etc.). To customize it:

  • Click on the legend.
  • Move it to the desired position (top, bottom, right, or left).

4: Add Data Labels (Optional)

  • Right-click on a line and select Add Data Labels.
  • Adjust label positions for better clarity.
How to  Make a Line Graph in Excel
Right Click >> Select " Add Data Labels">> Preview Results

Step 6: Compare Multiple Lines

Once your chart is created, you can easily see:

  • How each dataset changes over time (trends).
  • Differences or similarities between multiple lines.
  • Peaks, dips, or intersections between datasets.

Step 7: Save and Update the Graph

  • Save your Excel workbook.
  • If your data changes, the chart will automatically update.
How to  Make a Line Graph in Excel
Preview the Multiple Lines Chart

Different Types of Line Charts in Excel

When creating line graphs, there are several Excel chart types to choose from depending on your data and analysis needs:

1. Stacked Line

It aims to demonstrate how different elements of a whole alter over time. The top line in this graph represents the sum of all the lines below it because the lines in this graph are cumulative, which means that each new data series is added to the first.

How to  Make a Line Graph in Excel
Stacked Line

2. 100% Stacked Line

It resembles a stacked line graph, but the y-axis displays percentages rather than absolute numbers. The top line, which spans the top of the chart directly, indicates a sum of 100% at all times. This kind is usually used to illustrate the gradual contribution of a part to the whole.

How to  Make a Line Graph in Excel
100% Stacked Line

3. Line with Markers

The line graph with markers at each data point in the marked form. Stacked Line and 100% Stacked Line graphs are also available in marked forms. Use this chart type when there are few data points.

How to  Make a Line Graph in Excel
Line with Markers

4. 100% Stacked Line with Markers

Use this chart type to show the percentage contribution to a whole over time or categories. Show the change to the percentage that each value contributes over time.

How to  Make a Line Graph in Excel
Stacked Line with Markers

5. 3-D Line

An alternative to the traditional line graph in three dimensions.

How to  Make a Line Graph in Excel
3-D Line

Advanced Tips for Line Graphs in Excel

When you make a line graph in Excel, these advanced tips can help you improve your chart:

1. Adding a Secondary Axis

  • Use a secondary axis to display two datasets with different scales on the same chart.
  • For example, plot sales numbers on the primary axis and profit percentages on the secondary axis for better comparison.
  • In Excel, right-click on a data series, choose Format Data Series, and select Secondary Axis.

2. Using Combo Charts (Line + Bar)

  • Combine line graphs with bar charts to show trends alongside categorical data.
  • For example, use a bar chart to show revenue by product and overlay a line graph for profit trends.
  • Select Insert Combo Chart in Excel and customize the chart for a dynamic presentation.

3. Handling Large Datasets with Filters

  • Apply filters to focus on specific subsets of data in large datasets.
  • For example, filter by date range, region, or category to analyze specific trends without overcrowding the chart.
  • In Excel, use slicers or the filter dropdown to display only the relevant data points.

These tips help you enhance line graphs for complex datasets and more effective visual storytelling.

Also Read:

Conclusion

Creating a line graph in Excel is an essential skill for presenting data trends and patterns effectively. With the steps outlined in this guide, you can easily make a line graph in Excel, customize it, and even compare multiple datasets for a deeper understanding of your data. Use these tools to elevate your analysis and create compelling visuals that communicate your insights clearly and professionally.


Next Article

Similar Reads