To order a bar chart in Excel, you must sort the source data table that the chart is linked to. Because Excel charts are dynamic reflections of their underlying data, any change in the order of the rows or columns in your spreadsheet will immediately update the order of the bars in your chart. Sorting from largest to smallest (descending) or smallest to largest (ascending) allows you to highlight top performers or identify outliers instantly.

What You'll Need

  • Microsoft Excel installed on your computer.
  • A dataset consisting of labels (categories) and numerical values.
  • An existing bar or column chart created from that dataset.

Step-by-Step

  1. Select your data range: Click and drag your mouse to highlight the cells containing the data used for your chart. Ensure you include the header row (the titles of your columns) so Excel knows how to categorize the information.
  2. Open the Sort menu: Navigate to the Data tab on the top ribbon. In the Sort & Filter group, click the Sort button. (Note: Labels and menu names may differ slightly depending on your version of Excel or region).
  3. Configure the sort settings: A dialog box will appear. Ensure the checkbox My data has headers is checked in the top right corner.
  4. Choose the sorting column: Under the Column dropdown menu (labeled "Sort by"), select the column that contains the numerical values you want to order the chart by.
  5. Set the order: In the Order dropdown menu, choose either Smallest to Largest or Largest to Smallest.
  6. Apply the sort: Click OK. Your data table will rearrange itself, and your bar chart will automatically update to reflect the new order.

Common Mistakes

  • Sorting only one column: A common error is selecting only the numbers and sorting them without selecting the labels. This "breaks" the data connection, meaning the wrong label will be attached to the wrong value. Always select the entire table range before sorting.
  • Ignoring the "My data has headers" box: If this is unchecked, Excel will treat your column titles as a piece of data and attempt to sort them into the chart, resulting in a bar labeled "Sales" or "Quantity" appearing in the middle of your visualization.
  • Confusing Column Charts with Bar Charts: In Excel, a "Column Chart" uses vertical bars, while a "Bar Chart" uses horizontal bars. It is important to note that Excel often plots horizontal bar charts in the reverse order of the spreadsheet. If your data is sorted A-Z in the sheet but appears Z-A in the chart, you may need to reverse the axis settings.

Tips

  • Use Excel Tables: Convert your data range into an official Table (select data and press Ctrl + T). Tables have built-in filter arrows in the header row, allowing you to sort your chart with a single click instead of opening the Data menu.
  • Dynamic Sorting with Formulas: For advanced users, the SORT function can create a secondary "sorted" version of your data. If you link your chart to this formula-driven range, the chart will update automatically whenever the original raw data changes.
  • Visual Hierarchy: For most professional reports, sorting from Largest to Smallest is preferred. This creates a "Pareto" effect where the most significant data points are at the top or left, making the chart much easier for a viewer to digest.

Troubleshooting

If your chart does not update or the order looks wrong, try these steps:

  • Check for merged cells: Excel cannot sort ranges that contain merged cells. If you see an error message stating that "this operation requires the merged cells to be identically sized," unmerge the cells in your data table and try again.
  • Reverse the Axis (for Horizontal Bar Charts): If your horizontal bar chart is sorted "upside down" compared to your table, right-click the vertical axis (the labels), select Format Axis, and in the Axis Options pane, check the box for Categories in reverse order.
  • Verify Data Range: If some bars aren't moving, ensure the chart is actually linked to the cells you are sorting. Right-click the chart, choose Select Data, and verify that the Chart data range covers all the rows you intended to sort.
  • Refresh the View: Occasionally, a lag in system resources may prevent the chart from updating instantly. Clicking into another cell or pressing F9 to recalculate the workbook usually resolves this.

Frequently Asked Questions

Can I sort a chart without sorting the original data?

No. Excel charts are mirrors of their source data. To change the visual order of the bars, you must change the order of the rows or columns in the spreadsheet.

How do I sort a chart by a column that isn't actually in the chart?

You can do this by selecting the entire data table (including the hidden columns) and sorting by the desired column in the Data > Sort menu. The chart will follow the row order of the table regardless of which columns are visually represented in the bars.

Why did my chart labels disappear after sorting?

This usually happens if you sorted only the value column and not the label column. To fix this, undo the action (Ctrl + Z), select both the labels and the values, and sort again.

Does sorting the data affect other charts linked to the same table?

Yes. Since all charts linked to that specific data range rely on the row order of the spreadsheet, sorting the table will reorder every chart connected to that data.

Can I sort my bar chart alphabetically?

Yes. Instead of sorting by the numerical value column, select the column containing the category names/labels in the Sort menu and choose A to Z or Z to A.