How to Make a Graph in Excel
In this article
You can create a graph in Excel by selecting your data, going to the Insert tab, and choosing a chart type. The software will automatically arrange the data into a visual format, which you can then customize with titles, colors, and labels.
What You'll Need
- A computer with Microsoft Excel installed (Desktop version is recommended for the most options, though the web version works for basic charts).
- A web browser if you are using the online version of Excel.
- Data to visualize. This can be a simple list of numbers or text and numbers arranged in rows and columns.
- A basic understanding of what kind of story you want the graph to tell (e.g., comparing sales, showing a trend over time, or breaking down a whole).
Step-by-Step
- Prepare your data in a worksheet. Open Excel and enter your data into the cells. For a standard graph, you generally have two columns: one for labels (like months or product names) and one for the values (the numbers you want to plot). For example, column A could be "Month" (January, February, March) and column B could be "Sales" (150, 230, 180). Ensure there are no blank rows between your data sets, as this can confuse the charting engine.
- Select the data you want to graph. Click and drag your mouse over the cells that contain your labels and the numbers you want to include. Do not select the headers (like "Month" or "Sales") unless you want them to appear on the graph axes. The selected cells will be highlighted with a light blue border.
- Go to the Insert tab. Look at the top menu bar in Excel. Click on the "Insert" tab to access the charting tools. This is where all the different types of charts are located.
- Choose a chart type. On the right side of the ribbon, under the "Charts" section, you will see several icons. These are grouped by type, such as "Recommended Charts," "Column," "Line," "Pie," and "Stock." Click on a category to see the specific chart options within that group. Click on a specific chart icon (e.g., "Clustered Column") to insert a basic version of that chart.
- Customize the chart. Once the chart is inserted, a new "Chart Design" and "Format" tabs will appear at the top of the screen. You can use these tabs to change the chart type, switch rows and columns, add chart elements like a title or gridlines, or change the color scheme. Click on the chart to select it, and then use the "Chart Design" tab to select "Add Chart Element" if you need to add a legend or axis titles.
- Save your work. Save your Excel file regularly. Charts in Excel are linked to the data in the cells. If you change a number in the source data, the chart will automatically update to reflect that change.
Common Mistakes
One of the most common mistakes is selecting the wrong range of cells. If you only select the numbers and not the labels, Excel will use generic labels like "Series 1" and "Series 2" on the horizontal axis, which makes the graph difficult to understand. Always double-check that your labels are included in the selection.
Another frequent error is choosing a chart type that does not fit the data. For example, using a pie chart to show how a budget changes over a year is misleading because pie charts are designed to show parts of a whole, not trends over time. A line or area chart is much more appropriate for showing changes over a timeline.
Tips
If you want to create a graph that is easy to read and professional-looking, consider using a "Combo" chart. This allows you to combine two different types of data on the same graph. For instance, you could show sales figures (as columns) and profit margins (as a line) on the same chart. To create a combo chart, go to the Insert tab, click on the dialog launcher in the Charts section, and select "Combo" from the All Charts tab.
Always label your axes. A graph without axis titles is often confusing. The horizontal axis usually represents the category or time frame, while the vertical axis represents the value. To add axis titles, go to the Chart Design tab, click on "Add Chart Element," hover over "Axis Titles," and select "Primary Horizontal" or "Primary Vertical." Then, type in the appropriate title.
Troubleshooting
If your graph does not appear or looks incorrect, the first thing to check is the data range. Ensure that the data is contiguous and that there are no blank rows or columns separating the data sets. If the chart is not updating when you change a number in the source data, click on the chart to make sure it is selected, and then look at the "Design” tab. There is a button called "Select Data.” Clicking this will allow you to verify that the chart is still linked to the correct range of cells.
If you are using the online version of Excel and your data is not updating, try refreshing the page. Sometimes, the browser cache can cause issues with live data connections. If the chart still looks wrong, you may need to recreate the chart from scratch by selecting the data again and inserting a new chart.
Frequently Asked Questions
How do I make a line graph in Excel?
Select your data and click the "Insert" tab. In the "Charts" section, click on the "Line" icon and choose the sub-type you prefer, such as a "3-D Line" or a "Line with Markers." The software will generate a graph with points connected by lines to show the trend.
Can I create a graph from a table in Excel?
Yes. If you have a table of data, simply click anywhere inside the table to select it. Then, go to the "Insert" tab and choose a chart type. Excel will automatically detect the headers and use them for the axis labels.
Why is my Excel chart empty?
An empty chart usually means that no data was selected before you clicked the chart icon. Select the cells containing your data first, and then try inserting the chart again.
How do I add a trendline to my chart?
Click on the chart to select it. Go to the "Chart Design" tab and click on "Add Chart Element." Hover over "Trendline" and select the type of trendline you want, such as "Linear" or "Exponential." You can also right-click on the data series and choose "Add Trendline" from the context menu.
Can I save a chart as an image?
Yes. Click on the chart to select it. Go to the "File" tab and select "Save As.” Choose "PNG" or "JPEG" as the file type. This will save the chart as an image file that you can use in other documents or presentations.
How do I change the colors of the bars in my chart?
Click on the chart to select it. Go to the "Format" tab. You can use the "Shape Styles" section to quickly change the color and fill of the bars. For more specific colors, click on the "Fill Color" button and choose from the palette. You can also right-click on a specific bar and choose "Format Data Series" to change the color of just that bar.