Creating a line chart in Excel takes four steps: select your data, go to the Insert tab, choose Line Chart, and pick your style
A line chart shows how something changes over time — sales by month, temperature by day, website visits by week. Excel builds the chart for you once you tell it which numbers to use and where the labels are. The whole process takes less than a minute once you know where to click.
You do not need to format your data in any special way first. Excel reads a simple table: dates or labels in one column, numbers in another. If you have multiple lines to show (like sales for different products), put each product's numbers in its own column next to the labels.
Key Takeaways
- Select all your data including headers before you insert the chart — Excel uses the first row as labels for the lines and axes.
- The Insert tab holds the Line Chart button; clicking it shows you different line chart styles to choose from.
- After you create the chart, you can move it, resize it, and change the title by clicking on the chart and editing directly.
- If your data changes later, the chart updates automatically — you do not have to rebuild it.
Select your data before inserting the chart
Open your spreadsheet and look at the table you want to turn into a chart. Your data should have labels in the first row — these become the axis labels and line names. For example, if you have months in column A and sales numbers in column B, select from A1 down to the last row with data.
Click on the first cell (the one with your first label or date) and drag to the last cell with a number. You can also click the first cell, hold Shift, and click the last cell. The selected area should be highlighted in blue. Do not skip the header row — Excel needs it to label your chart correctly.
If you have multiple columns of numbers (like sales for Product A and Product B), select all of them at once. Include the column headers. Excel will create one line for each column of numbers.
Go to the Insert tab and choose Line Chart
At the top of Excel, click the Insert tab. You will see a row of chart icons. Look for the one that shows lines going up and down — that is the Line Chart button. Click it, and a menu drops down showing different line chart styles.
The first style shows lines with dots at each data point. The second shows lines without dots. The third shows only the dots, no connecting lines. Pick whichever looks right for what you are showing. If you are not sure, the first one (lines with dots) works for almost everything.
Click your choice, and Excel creates the chart right on your spreadsheet. It appears as a box with your data plotted as lines. The chart is selected (you will see handles around it), so you can move it or resize it right away.
Move and resize your chart
The chart sits on top of your data by default. To move it, click anywhere inside the chart box and drag it to a new spot. To make it bigger or smaller, grab one of the small squares at the corners or edges and drag outward to enlarge or inward to shrink.
If you want the chart to sit on its own area of the spreadsheet, drag it to an empty section below or to the right of your data. This keeps your data table and chart separate and easier to read.
Edit the chart title and labels
The chart comes with a default title like "Chart Title". To change it, click directly on the title text. A cursor appears and you can type a new name. Press Enter when you are done.
To change the axis labels (the text along the bottom and left side), right-click the chart and select Edit Data. This opens a small window showing your data range. Make sure the headers match what you want to see on the chart. If you change a header in your original table, the chart updates automatically.
You can also click on the axis numbers themselves to format them — for example, to show dollar signs or fewer decimal places. Right-click the numbers and choose Format Axis to see your options.
Update your chart when data changes
If you add new rows to your original data table, the chart does not automatically include them. You need to tell Excel to use a larger data range. Right-click the chart, select Edit Data, and drag the highlighted box in your spreadsheet to include the new rows.
If you change a number that is already in the chart, the line updates immediately — you do not have to do anything. Excel watches your data and redraws the chart whenever a value changes.
Common mistakes and how to avoid them
The most common mistake is forgetting to include the header row when you select data. If your chart shows "Row 1" or "Row 2" instead of "January" or "Product A", go back and select your data again, this time starting from the cell with the label, not the first number.
Another mistake is selecting data that is not in a continuous block. If your labels are in column A and your numbers are in column C (with column B empty), Excel gets confused. Either delete the empty column or select column A and column C separately by holding Ctrl while clicking.
If your chart shows a line you did not want, you probably selected an extra column by accident. Right-click the chart, choose Edit Data, and uncheck the columns you do not need.
Frequently Asked Questions
Can I create a line chart with data in rows instead of columns?
Yes. Excel reads your data either way. If your months are across the top row and your numbers are in rows below, select the whole table the same way — Excel figures out which direction the data goes. If it gets it wrong, right-click the chart and choose Edit Data to swap rows and columns.
What if I want to show multiple lines on the same chart?
Select all your data at once, including the label column and all the number columns. Each column of numbers becomes one line. Make sure the first row has names for each column — Excel uses these as the line labels in the legend.
How do I change the colors of the lines?
Click the chart to select it, then right-click one of the lines and choose Format Data Series. A panel opens on the right side where you can pick a new color. You can change each line separately by clicking just that line before opening the format menu.
Can I delete a line from the chart without deleting the data?
Yes. Right-click the chart and select Edit Data. A small window shows your data with checkboxes next to each column. Uncheck the column for the line you want to hide. The data stays in your spreadsheet but does not appear on the chart.
What happens if I add new data to my spreadsheet after creating the chart?
The chart does not automatically expand to include new rows. Right-click the chart, select Edit Data, and drag the blue box around your data to include the new rows. After that, the chart will update whenever you add numbers to those rows.