Set Up Your Data
For a line graph the horizontal axis should show time. The many time periods, months, should go in the first column. The second column should contain the value you are measuring.
Here's a simple layout. Column A: January, February, March. So on. Column B: the sales number for each month. Add headers in row one, "Month" and "Sales," so Excel can label the chart for you.
Don’t include any extra, empty rows or merged cells. Keep your data neat. Excel is very certain and a single misspelled or misplaced word can ruin your line graph.
How to Make a Line Graph in Excel on Windows
The Windows process is quick. Here's the full sequence.
First, select the data you want to work with. Click the top left cell of your table and drag the mouse to the bottom right of the table to highlight both the labels and the values.
Next, go to the Insert tab located at the top of the window and click the icon of a rising line to create a line chart.
Finally, from the menu that appears choose which style of line chart you would like. Line charts can also be created using the “Advised Charts” option if you would like Excel to select the chart style for you.
Excel drops the chart onto your sheet right away. That's the graph done. The rest is customizing, which we'll get to.
If you wish to have Excel select a chart style for you, simply select the data you wish to chart and click "Advised Charts". Line charts are suggested when numbers show data over time.
How to Make a Line Graph in Excel on Mac
Process is fairly similar on Mac as well, just with different names for the same commands.
Select your data range the same way, including the header row. Click the Insert menu in the top menu bar, not the ribbon tab, though recent versions show both.
Choose Chart, then pick Line from the chart types that appear. On newer Mac versions you'll see the same line chart icons as Windows in the Charts group of the Insert ribbon.
Your chart is on the sheet. Click on it to modify it using the Chart Design and Format tabs and the paintbrush and plus icons that appear on the side.
Manipulating the charts in Excel is similar to what you do in Windows. If you know how to do it on one, you can do it on the other.
Adding Multiple Lines
This is where line graphs shine. Comparing two or three trends on one chart tells a story a single line can't.
The way that you structure your data finds whether or not you can create a graph. To create a graph, you need to separate your time values and your data values. To do this, put your time values in column A and your series values in columns B, C, D, etc.
Select the whole block of data, with the headers. Embed the line chart. Excel creates a line for each data column and adds a legend to help distinguish the lines for the reader. Each line gets a different color.
To add a line in the future, right click the chart and select “Select Data” to add a new data series.
Customize Your Line Graph
A default chart works. A polished one earns trust. Here are the changes worth making.
The title of the chart can be edited by selecting the current title and typing a more right title. Instances of better titles might be “Monthly Sales 2024” as opposed to the vague “Sales.”
To add titles to the axes of the chart select the plus sign within the chart to add “Axis Titles.”
To change the style of a line in a line chart, click on the line and go to the Format pane to change the color and/or thickness. Increasing the thickness of a line improves legibility, mainly when shrinking the chart size.
To change the minimum value of the vertical axis to correct an incorrect axis scale, right click on the axis, go to Format axis. Enter the minimum value. Setting a value of zero, if right, will adjust the axis to reflect the truth of the data.
A Real-World Example
Suppose your web site had 1,200 visitors in the first month, then 1,450 and 1,600 the next two months, then 1,500, 1,900. @CAP@2,300 the last months. In a table or list this would be hard to grasp. A line graph shows this type of trend easily.
To create a line graph from these two columns, select the ranges of months and visitors, go to Advised Charts and click Line with Markers. Bingo, there’s the trend. With one dip in month four and then a big increase after that. Adding a second line of a competitor’s performance over the same time period would raise questions and focus your attention on that dip in performance.
That's the value of a line graph. It shows direction, not just values.
Troubleshooting Common Problems
If your line chart looks wrong, it’s probably because of an error in your data.
| Problem | Fix |
|---|---|
| Line is flat at zero | Numbers are stored as text; reformat the column |
| Dates on the wrong axis | Put time labels in the leftmost column |
| Only one line shows | Select every data column, not just one |
| X-axis shows 1, 2, 3 instead of dates | Format the label column as dates |
| Gaps break the line | Fill blank cells or use Select Data to handle empties |
Check your source cells first whenever the chart surprises you. The chart tool is rarely the problem.
Build Charts Without Excel
If you don't have Excel handy, you can still make a line graph. The free [Denwix Line Graph Maker](here builds a chart from pasted numbers in your browser, with no install and no account.
For every option Excel offers, [Microsoft's official chart guide](here is the complete reference. It covers both Windows and Mac differences.
The Bottom Line
With this details, you can easily create line graphs on both Windows and Mac versions of Excel. Tidy your data, with the time values in the left column. Select insert- line chart to customize. Add a column for each series to create many lines. The process remains the same across both sites.
Questions and Answers
How do I make a line graph in Excel?
To create a line chart in Excel on Windows, select your data including the headings, go to the Insert tab. Click the line chart button.
How do I make a line graph in Excel on a Mac?
To create a line chart on a Mac, select your data, go to the Insert tab. Click Chart, then select Line. Similar to Windows, more recent versions of Mac Excel also give line chart options within the ribbon.
How do I add a second line to my graph?
To create a line chart with many series, insert a line chart using the data you want to compare, select both columns. Insert again. Alternatively, you can right click the chart, select ‘Select Data’ and add the new series.
Why is my line graph flat?
If your numbers are formatted as text, the line will be flat at zero. Select the column to format it as ‘Number’.
How do I put dates on the x-axis?
To have Excel create the horizontal axis for you, format the left most column of your data to be dates and insert the values there first.
How do I add a title to my line graph?
Click the default title to change it to a title that will allow readers to quickly grasp your chart.
How do I label the axes in Excel?
Click the chart, then click the plus sign to add Axis Titles. Enter the units of measure for that axis.
How do I change the color of a line?
To change the color and thickness of a chart line select the line and change the settings in the format tab. For better readability use thicker lines.
How many lines can a line graph have?
From a readability perspective it is best to keep the total number of lines on a chart to 4 or 5. If more than 5 lines are needed to show the data consider using a different type of chart.
How do I make a line graph with two y-axes?
To create a secondary axis right click on the data series and select ‘Format Data Series’ and select ‘Secondary Axis’.
Why does my x-axis show numbers instead of dates?
Excel thinks of your labels as part of a value series. Make sure your date column is formatted correctly and is the first column in your selection.
How do I smooth the line in a line graph?
Right-click the line and select ‘Format Data Series’. Then check ‘Smoothed Line’. Smoothing may not be an accurate representation of the data.
Can I make a line graph from two columns?
Yes. One column for your time labels and another for your values is the minimum requirement for a line graph. Select the columns along with their header labels and insert a line chart.
How do I fix gaps in my line graph?
Fill the blank cells with values. Right-click the chart, choose Select Data. Set how hidden and empty cells are shown. You can connect across gaps or leave them.
What is the difference between a line chart and a scatter chart?
Line charts work best when the values along the x-axis are equally spaced. Scatter charts work best when both sets of values are numerical.
How do I update a chart when I add new data?
Right-click the chart, select ‘Select Data’ and include the new data rows. Some Excel tables on its own update charts when new data rows are added.
Can I copy an Excel line graph into Word?
Yes. Select the chart in Excel and copy it. Paste it in Word and it will update when the Excel data changes.
How do I start the y-axis at zero?
Right-click the axis, go to ‘Format Axis’ and set the ‘Min’ value to ‘0’. Chart values will not be exaggerated when the minimum value is ‘0’.
Why do my markers overlap?
There are too many data points to well display on the chart. To reduce data points, consider using a line chart without markers or summarizing your data.
Can I make a line graph without Excel?
Yes. Browser based tools allow you to paste data. Then create a line chart. Try Denwix Line Graph Maker.
How do I add a trendline in Excel?
After clicking the data series, you will see a plus sign. Click that to add a trend line to the series.
Can I make a line graph with dates on the x-axis?
Yes. Put your dates in the leftmost column and format them as dates. Excel then spaces them correctly on the horizontal axis, even when the gaps between dates vary.
How do I change the line thickness in Excel?
Select the line, go to ‘Format’ and select the ‘Line Weight’ option to increase the weight of the line.
Why are my two lines on very different scales?
If data is plotted as a single series and is cluttered, right click the series, select Format Data Series and change it to Secondary Axis. Each data series will now have its own axis.
How do I add markers to a line graph?
Markers can be added to a line chart by changing the chart type to Line with Markers or by clicking the line and changing it to a marker line in the Format pane. Markers are useful when showing data with only a few points.
Can I save an Excel chart as a picture?
Yes. Right click the chart and select Save as Picture. The image of the chart can also be pasted to a new location using copy and paste.
How do I fix a line that drops to zero?
If there are gaps in the data, this may also produce an erroneous chart. Enter data to fill the gaps. Use the Select Data option to explain to Excel how to treat the gaps.