Updating a bar chart in Excel is achieved by modifying the source data cells or adjusting the data range the chart is linked to. Because Excel charts are dynamic, any change made to the numbers in the linked spreadsheet will automatically reflect in the bars of the chart in real-time.
What You'll Need
- An existing Excel workbook containing a bar chart.
- The source data table or range used to create that chart.
- Administrative access to edit the spreadsheet.
Step-by-Step
Depending on whether you are changing a value, adding new categories, or shifting the entire data source, use one of the following methods. Note that menu labels may differ slightly depending on your version of Excel (Windows, macOS, or Web).
Method 1: Updating Existing Values
- Locate the data table that feeds the bar chart.
- Click on the cell containing the number you wish to change.
- Type the new value and press Enter.
- Observe the bar chart; the corresponding bar will automatically grow or shrink to match the new value.
Method 2: Adding New Data Rows or Columns
- Enter your new category name and value in the row immediately below or column immediately to the right of your current data range.
- Click once on the bar chart to select it. This will reveal the Chart Design and Format tabs in the top ribbon.
- Look at your data table. You will see colored borders (blue, purple, or red) highlighting the range of cells currently being used by the chart.
- Hover your mouse over the small square handle (the fill handle) at the bottom-right corner of the colored border.
- Click and drag the handle down or across to include the new rows or columns of data.
- Release the mouse, and the chart will automatically add the new bars.
Method 3: Using "Select Data" for Complex Changes
- Right-click anywhere on the bar chart.
- Select Select Data... from the context menu. This opens the Select Data Source dialog box.
- To change the entire data range, click into the Chart data range box and highlight the new range on your sheet with your mouse.
- To add a specific series (a new set of bars), click the Add button under the Legend Entries (Series) section.
- To change the labels on the bottom axis, click Edit under the Horizontal (Category) Axis Labels section.
- Click OK to apply the changes.
Method 4: Automating Updates with Excel Tables
- Select your source data range.
- Press Ctrl + T (Windows) or Cmd + T (Mac), or go to Insert > Table.
- Ensure "My table has headers" is checked and click OK.
- Now, create your bar chart using this Table as the source.
- Whenever you type new data directly below the last row of the Table, the Table expands automatically, and the bar chart updates instantly without needing to drag borders or use the Select Data menu.
Common Mistakes
- Including Blank Rows: If you select a range that includes empty rows at the bottom, the chart may show empty gaps or "blank" categories on the axis.
- Mixing Data Types: Entering text into a cell that the chart expects to be a number will result in that specific bar disappearing or showing as zero.
- Overwriting Headers: Changing the header name in the data table will change the legend or axis title; ensure you aren't accidentally deleting these.
- Hidden Rows: By default, Excel does not plot data in hidden rows or columns. If your bars disappear after you hide a row, this is the cause.
Tips
- Use Named Ranges: For advanced users, using a Dynamic Named Range with the OFFSET formula allows the chart to update automatically even without using a formal Table.
- Sort Your Data: To make a bar chart easier to read, sort your source data from Largest to Smallest. The bars will automatically rearrange themselves into a clean "waterfall" effect.
- Consistent Formatting: If you add new data and the colors change, use the Chart Design > Change Colors menu to keep the visual style consistent.
- Quick Filter: Use the "Chart Filters" button (the funnel icon that appears next to the chart when selected) to temporarily hide specific bars without deleting the source data.
Troubleshooting
If your chart is not updating as expected, try these steps in order:
- Check for Manual Calculation: If values change in the cells but not in the chart, your workbook might be set to Manual Calculation. Go to the Formulas tab > Calculation Options and select Automatic.
- Verify Data Types: Ensure your numbers are formatted as "Number" or "General" and not as "Text." Numbers stored as text are ignored by charts.
- Refresh the Range: Right-click the chart, choose Select Data, and double-check that the highlighted box actually covers all the cells you intended to include.
- Check for Hidden Data Settings: If hidden rows aren't appearing and you want them to, go to Select Data > Hidden and Empty Cells and check the box for "Show data in hidden rows and columns."
Frequently Asked Questions
Why isn't my bar chart updating when I add new rows?
This happens because the chart is linked to a fixed range (e.g., A1:B10). When you add data to row 11, it falls outside that range. To fix this, drag the colored border of the data range or convert your data into an official Excel Table.
Can I update a chart that is linked to another sheet?
Yes. You can modify the data on the source sheet, and the chart on the destination sheet will update. If you need to change the source sheet entirely, use the Select Data menu to point the chart to the new location.
How do I change the colors of the bars after updating?
Right-click on a specific bar to open the Format Data Point pane. From there, you can change the fill color. To change all bars at once, click the series once and use the Fill bucket in the Home tab.
Will updating the data change the scale of the Y-axis?
Usually, yes. Excel automatically adjusts the axis scale to fit the highest value. If you want the scale to remain constant, right-click the axis, select Format Axis, and manually set the Minimum and Maximum bounds.
How do I remove a bar from the chart without deleting the data?
The easiest way is to use the Chart Filters (funnel icon) next to the chart. Uncheck the category you want to hide and click Apply.