To display a bar chart in ascending order in Excel, you must first sort the underlying data range before creating the chart—or sort the data after chart creation by editing the axis or reordering the source data. Excel charts reflect the order of the data in the worksheet, so sorting the data is the most reliable method. This guide walks you through both approaches.

What You'll Need

  • Microsoft Excel (Windows or Mac, versions 2016, 2019, 2021, Microsoft 365, or Excel for the web)
  • A dataset with at least two columns (e.g., categories in one column, values in another)
  • A pre-existing bar chart (optional—if you already have one, you can sort the data behind it)

Step-by-Step

  1. Open your Excel workbook and locate the worksheet containing the data for your bar chart.
  2. Ensure your data is properly organized in contiguous rows or columns, with a header row (e.g., A1:B10: Column A = Categories, Column B = Values).
  3. Select any cell within your data range (e.g., click inside the values column).
  4. Go to the Data tab on the ribbon.
  5. Click Sort in the Sort & Filter group. This opens the Sort dialog box.
  6. In the Sort by dropdown, choose the column containing the values you want to sort by (e.g., "Values").
  7. In the Sort On dropdown, leave it as Values (unless you're sorting text categories alphabetically).
  8. In the Order dropdown, select A to Z for ascending order (smallest to largest value).
  9. Click OK. Excel will sort the entire data range, keeping rows aligned.
  10. If you haven’t created the chart yet, proceed to insert it: select your sorted data (including headers), go to the Insert tab, and choose Bar Chart > 2-D Bar or Clustered Bar.
  11. If the chart already exists, right-click the chart and choose Select Data. In the Horizontal (Category) Axis Labels section, ensure the correct range is listed. If needed, click Edit and re-select the sorted category range (e.g., $A$2:$A$10).
  12. Click OK. The bar chart will now display bars in ascending order by value.

Common Mistakes

  • Sorting only the values column—this breaks row alignment. Always sort the entire data range using the Data > Sort dialog (not the Home tab’s Sort A to Z), especially if you have multiple columns.
  • Using the wrong sort column—ensure you sort by the *values* column (e.g., sales), not the category column (e.g., product names).
  • Forgetting to update the chart’s axis range after sorting—Excel may retain the old category label range, causing misalignment or #REF! errors.
  • Confusing ascending and descending—ascending means smallest to largest, so select A to Z or Smallest to Largest (in Excel for web, the wording may vary slightly).
  • Sorting after chart creation without refreshing data—Excel charts don’t auto-reorder when data changes; you must sort the source data first, then update the chart’s data source if needed.

Tips

  • Use Excel Tables: Convert your data range to a Table (Ctrl+T or Cmd+T), then sort within the table. Charts linked to Tables automatically update when data is sorted.
  • Sort by helper column: If you need multiple sorts (e.g., ascending by value, then descending by category), add a helper column with a formula like =B2 and sort by that.
  • Bar chart vs. column chart: For ascending value order, both work identically. Horizontal bar charts (bar) are often clearer for long category names.
  • Reverse axis order as a last resort: Right-click the category axis > Format Axis > check Categories in reverse order. This *visually* flips the order but does *not* sort the underlying data—use only if sorting the data isn’t possible.
  • Check for hidden rows: Filtered or hidden rows can interfere with sorting. Clear all filters (Data tab > Clear) before sorting.
  • Use keyboard shortcuts: After selecting a cell in the values column, press Alt > A > S > S to open the Sort dialog quickly.

Troubleshooting

If your bar chart doesn’t update to ascending order after following the steps:

  • Data not sorted correctly: Reopen the Sort dialog and verify you selected the correct column and order. Double-check for leading spaces or mixed data types (e.g., numbers stored as text), which sort incorrectly. To fix text numbers, use =VALUE(A2) or the Text to Columns tool (Data tab > Text to Columns > Finish).
  • Chart shows old order despite data being sorted: Right-click the chart > Select Data > check the Horizontal (Category) Axis Labels range. If it’s missing or wrong, reselect the correct category range and click OK.
  • Sort dialog doesn’t appear: Ensure no cells in your data are merged—merge cells prevent sorting. Unmerge them (select range > Home tab > Merge & Center > Unmerge Cells), then try again.
  • Chart series and categories misaligned: Re-select the full data range (including headers) when inserting or editing the chart. Avoid selecting non-contiguous ranges.
  • Using Excel for the web: The Sort dialog is simplified. Click the header of the values column, then choose Sort A to Z from the dropdown menu. Ensure the chart’s data source is still linked to the sorted range.
  • Still not working?: Copy your data to a new worksheet, recreate the chart, and sort there. This eliminates hidden formatting or corruption issues.

Frequently Asked Questions

Can I sort a bar chart without changing the original data?

No—Excel charts always reflect the data’s order in the worksheet. To preserve the original order, create a copy of the dataset, sort the copy, and base the chart on the sorted copy.

Why does my bar chart show descending order by default?

Excel does not auto-sort data; charts display data in the order it appears in the worksheet. If your data is sorted descending (e.g., largest to smallest), the chart will mirror that. Re-sort the data ascending to fix it.

Can I sort a stacked bar chart by total value?

Not directly. Excel sorts by category axis labels, not stacked segment totals. To sort by total values, add a helper column with a SUM formula for each row (e.g., =SUM(B2:D2)), sort by that column, then update the chart’s data source.

Does sorting work the same in Excel for Mac and Windows?

Yes—the core steps are identical. Menu labels may differ slightly (e.g., Data > Sort & Filter on Windows vs. Data > Sort on Mac), but the dialog and options are consistent across platforms.

What if my category labels contain numbers (e.g., "1", "2", "10")?

Excel may sort them as text (1, 10, 2) instead of numeric order (1, 2, 10). Convert them to numbers using Text to Columns or the =VALUE() function before sorting to ensure correct ascending order.

Can I sort by value in a pie chart?

No—pie charts don’t have a category axis and can’t be sorted by value order in Excel. Convert to a bar or column chart for ascending sorting. If you must use a pie chart, manually reorder the data rows in the worksheet and update the chart data source.