How to Make a Graph in Excel From Data
In this article
To turn data into a graph in Excel, put your numbers in two clean columns (labels in one, values in the other), select the whole range including the headers, then go to Insert > Charts and pick a chart type. Excel draws the chart from your selection instantly and you can adjust titles, labels and colours from the Chart Design and Format tabs. The whole job takes about a minute once the data is tidy — and almost every problem people hit later comes from the data not being tidy to begin with, so the setup matters more than the charting.
What You'll Need
- Excel on Windows, Mac, or Excel for the web (the ribbon is the same in all three; menu labels can differ slightly by version and region).
- Your data in a single worksheet, ideally as a simple table: one column of labels (months, categories, names) and one or more columns of numbers.
- Column headers in the first row — they become the series names in the legend.
- No blank rows or columns inside the data range, and no text mixed into the numeric columns.
Step-by-Step
- Lay out the data in a simple grid. Put your category labels in column A (for example Jan, Feb, Mar) and your numbers in column B directly alongside the matching label. If you are comparing two things, add a third column — for example A for month, B for sales, C for costs. Each row is one data point.
- Add a header row. Put a short label above each column, like "Month" and "Sales". Excel uses these for the axis title and legend, so leave the top-left cell blank or let Excel fill it in.
- Check the number formats. If any cells in a numeric column are stored as text (they sit flush left and show a green warning triangle), select the column, open the Data tab and use Text to Columns > Finish to convert them, or reformat the cells as Number. Charts silently ignore text-formatted numbers and plot them as zero.
- Select the full range including headers. Click the top-left header cell, then hold Shift and click the bottom-right number. When you make the chart, Excel will read the headers automatically.
- Go to Insert > Charts and pick a type. For comparing categories over time, use a Line chart. For comparing totals across categories, use a Column (vertical bar) chart. For showing parts of a whole, use a Pie or Doughnut chart. For showing the relationship between two numeric variables, use a Scatter (XY) chart. Hover over each icon in the Charts group to see a preview of your actual data before committing.
- Click the chart type. The chart appears on the same sheet. Drag it by its border to move it, or drag a corner handle to resize it. Hold Alt while dragging on Windows to snap it to cell boundaries.
- Give it a title. Click the chart title placeholder and type a plain description, such as "Monthly sales, 2026". Keep it short and specific so the chart means something without the surrounding text.
- Add axis titles. With the chart selected, click the plus (+) button at its top-right corner and tick Axis Titles. Label the vertical axis with the unit ("Sales in USD") so readers do not have to guess.
- Fine-tune the look. On the Chart Design tab, use Chart Styles to change colours in one click. Use Change Chart Type if you want to swap between line, column and bar without starting over. Click any single element — a data point, a legend entry, an axis — and use the Format tab to adjust it.
- Show the numbers if precision matters. Click the plus (+) button and tick Data Labels. For a pie chart this is essential; for a line chart with many points it usually clutters things.
- Keep the chart linked or make it standalone. A chart made this way updates automatically when you edit the source cells. To paste a frozen picture into an email or a document, copy the chart and use Paste Special > Picture.
Common Mistakes
- Selecting only the number column. Excel then plots the values against 1, 2, 3 instead of your real labels. Always include the label column in the selection.
- Leaving blank rows inside the data. A blank row makes Excel think the data has ended and the chart stops early. Delete or fill the gaps.
- Numbers stored as text. The most common cause of a flat line at zero. Convert them to numbers before charting.
- Using a pie chart for too many categories. More than about five or six slices becomes unreadable. Use a bar chart instead.
- Truncating the vertical axis. Excel's default axis usually starts at zero. If you change it, a small difference can look dramatic and mislead readers. Start at zero unless you have a clear reason not to, and say so.
- Adding a chart to a range with merged cells. Merged cells break sorting, filtering and charting. Unmerge them first.
- Using a line chart for unordered categories. A line implies continuity over time. If your labels are things like product names, use columns or bars.
Tips
- Press Ctrl+T (Cmd+T on Mac) to turn your range into an official Excel Table. Charts built on a table expand automatically when you add new rows.
- To put the chart on its own sheet, right-click the chart and choose Move Chart > New sheet. Handy for reports.
- To chart only part of the data, click the chart and look at the coloured outline around the source range — drag its corner to include or exclude rows.
- Hover over the chart and use the paintbrush button to change style and colour scheme together.
- Use a scatter chart, not a line chart, when both axes are numbers (for example temperature versus energy use). A line chart treats the horizontal axis as evenly spaced labels, which can distort the shape.
- Keep one message per chart. If a chart needs a paragraph to explain it, split it into two.
Troubleshooting
The chart is empty or flat. Check that the selected range actually contains your numbers and that they are not text-formatted. Click the chart, look at the highlighted range on the sheet, and confirm it covers all rows.
The wrong column became the legend. Use Chart Design > Select Data and set the correct series names, or re-select the range with headers ticked in the Source Data dialog.
The labels are cut off or overlapping. Enlarge the chart, or change the axis label rotation via Format Axis > Text Options. On crowded category axes, fewer labels usually beats smaller text.
New rows do not appear. Charts only auto-update if the new data falls inside the outlined range or the data is an Excel Table. Otherwise use Select Data to extend the range.
The date axis is wrong. Excel sometimes treats dates as text. Reformat the column as Date and re-plot; the chart will then space months correctly.
The chart looks broken after editing. Undo (Ctrl+Z) first. If that fails, delete the chart and rebuild it from a clean selection — usually faster than repairing one element at a time.
Frequently Asked Questions
Can I make a graph from data on another sheet?
Yes. Either type your range into the selection box as Sheet2!A1:B12, or put the data in a table and reference that. The chart still updates when the source data changes.
How do I add a second line to the same chart?
Include the second column in your original selection, or go to Chart Design > Select Data > Add and point it at the extra series. Both lines then share the vertical axis, which only works well if the scales are similar.
What is the difference between a column chart and a bar chart?
Columns run vertically and suit time periods; bars run horizontally and suit long category names, because the labels read left to right.
Why does my chart not update when I change a number?
The chart is almost certainly linked to a different range, or the cell you edited is outside the outlined source. Click the chart and check the outline.
Can I chart data that is in one long single column?
Yes, Excel reads it as one series but the horizontal axis will be simple numbering. For meaningful labels you need a separate label column.
Is Excel for the web the same?
The Insert > Charts and Chart Design options are broadly the same, but some formatting and axis controls are more limited than the desktop version.