Yes, you can reverse the order of data in an Excel horizontal bar chart to show the largest or smallest values at the left or right end of the axis, which is often required for better readability or to match a specific reporting format. This is achieved by either sorting your data source before creating the chart or, more commonly, by reversing the order of the category axis labels without altering your original spreadsheet data. The most reliable method for doing this is to use the "Format Axis" dialog, where you can access the "Categories in reverse order" toggle.

What You'll Need

  • A computer with Microsoft Excel installed. The steps described below apply to Excel for Microsoft 365, Excel 2019, Excel 2016, and Excel 2013 on Windows. (Mac users will find the same functionality in the Format pane, usually accessed via a right-click on the axis).
  • A dataset containing the data you wish to visualize. The data should be organized in a table format, with labels (categories) in one column and values (numbers) in an adjacent column.

Step-by-Step

  1. Prepare your data (Optional but Recommended): Open your Excel workbook and select the data range you intend to chart. Ensure your data is clean; for a horizontal bar chart, the first column should contain your category labels (e.g., Product Names, Departments, Months) and the second column your numerical values. If your data is currently sorted from smallest to largest, it will appear that way on the chart. For the purpose of this guide, we will assume your data is in a standard list and not sorted, and we will reverse the order directly on the chart.
  2. Create the Horizontal Bar Chart: With your data range selected (including the headers), go to the "Insert" tab on the Excel ribbon. In the "Charts" group, click on the "Insert Column or Bar Chart" icon. From the dropdown menu that appears, select the first option under the "2-D Bar” category, which is typically labeled "Clustered Bar." This will generate a basic chart based on your selected data.
  3. Identify the Horizontal Axis: Look at your newly created chart. The horizontal axis (the X-axis) runs left to right across the bottom of the chart. This axis represents your categories (e.g., the names of the products or months). The bars will extend upward from this axis. It is this specific axis that we need to manipulate to reverse the order.
  4. Access the Format Axis Menu: To reverse the category order, you must format the axis itself. Hover your mouse cursor over the horizontal axis at the bottom of the chart. Right-click on the axis. From the context menu that appears, select the option labeled Format Axis…. This will open a pane on the right side of the Excel window (or a dialog box on older versions) containing various formatting options for the axis.
  5. Locate the Category Order Options: In the Format Axis pane, you will see a list of options. Look for the section labeled Axis Options. If the pane is collapsed, click the small arrow or the "+" sign next to "Axis Options" to expand it and reveal all sub-options. Within this section, look for the checkbox labeled Categories in reverse order.
  6. Apply the Reverse Order: Click the checkbox next to Categories in reverse order. You should see the bars on your chart immediately shift positions. The category that was previously on the far left will now move to the far right, and the category that was on the far right will move to the far left. The bars will now be ordered from largest to smallest (or vice versa) depending on how your data was originally sorted.
  7. Adjust the Bar Orientation (If Necessary): After reversing the order, you may notice that the bars are now pointing in the opposite direction of what is conventional for your report. In a standard horizontal bar chart, longer bars typically extend to the right to represent larger values. If your bars are now extending to the left, you can flip them back by clicking on any bar in the chart to select it, then navigating to the Format tab that appears on the ribbon, clicking the Shape Format tab, and selecting the Rotate Right 90° icon (or Rotate Left 90°, depending on the current orientation). This will make the bars extend to the right again, but now in the new, reversed order.
  8. Verify the Data: Double-check your chart against your source data to ensure the visual representation matches your requirements. You can do this by hovering your mouse cursor over individual bars to see the exact data values displayed in a tooltip. This step is crucial to ensure that the "reverse order" setting has not inadvertently sorted your data in the spreadsheet, which would permanently change the source values.

Common Mistakes

  • Reversing the Vertical Axis Instead: Users often confuse the vertical (Y) axis with the horizontal (X) axis. The vertical axis controls the scale of values (0 to 100, 0 to 1000, etc.). Reversing the vertical axis will make the smallest values appear at the top of the chart and the largest at the bottom. This is not the same as reversing the category order and is usually not what is desired for a horizontal bar chart.
  • Sorting the Data Source: A common error is to go to the spreadsheet and manually sort the rows of data before creating the chart. While this works, it permanently alters the order of your data in the sheet, which can be problematic if you use the same data for other reports or calculations. Using the "Categories in reverse order" checkbox is a non-destructive method that keeps your original data intact.
  • Ignoring the Bar Direction: When reversing the category order, the bars may flip direction. For example, if you have a chart where longer bars represent higher values and they are pointing to the left, simply reversing the order will make the longer bars point to the right, but the smallest values will now be on the left. It is important to also rotate the bars if they are facing the wrong way to maintain the conventional left-to-right flow (larger values on the right).
  • Not Updating the Chart: If you make changes to your data source after creating the chart, Excel will automatically update the chart. However, if you manually change the sort order of the data in the source range, the chart might not reflect the new order if it is based on a table or structured range. It is always best to edit the chart settings or regenerate the chart based on the source data to ensure consistency.

Tips

  • Use "Categories in Reverse Order" for Hierarchical Data: If your data represents a hierarchy (e.g., Country > State > City), reversing the category order can be particularly useful. It allows you to place the highest level of the hierarchy (e.g., Country) at the far left, making it easier to read the labels for the sub-categories that are stacked below or to the right of it.
  • Combine with Sorting: You can achieve a specific visual effect by combining sorting with the reverse order function. For example, if you want the largest value to be on the far right, you would first sort your data from smallest to largest, and then use the "Categories in reverse order" setting. This will place the largest value on the right and the smallest on the left.
  • Keep Your Data Clean: Before creating a chart, ensure that your data is free from errors, such as text in a number column or blank cells in a series. Blank cells can sometimes be interpreted as zero values or cause gaps in the chart, which can make it difficult to accurately read the order of the categories.
  • Check for Hidden Rows: Sometimes, hidden rows in your Excel spreadsheet can cause unexpected behavior in charts. If a row is hidden, it may not appear in the chart or may be treated as a category with a zero value. Ensure that all rows used in the chart are visible before applying the reverse order setting.
  • Use Named Ranges: For complex dashboards, consider using named ranges for your data. This can make it easier to update the chart and ensure that the correct data is being referenced, especially when dealing with large datasets.

Troubleshooting

If the bars do not appear to be moving or the order remains unchanged after you have clicked the "Categories in reverse order" checkbox, try the following troubleshooting steps to resolve the issue.

  • Check Selection: Ensure that you have actually selected the horizontal axis (the X-axis) before right-clicking. If you accidentally right-clicked on a bar or the legend, the "Format Axis" option will not appear. The cursor should be over the axis line at the bottom of the chart, and the axis should be highlighted in blue when you hover over it.
  • Verify the Axis Type: In some cases, if your data is set up as a table, Excel might automatically create a secondary axis or a different type of axis. If you are seeing a vertical line or a different type of chart element where the horizontal axis should be, try re-creating the chart from scratch. Select only the data range (excluding the headers) to ensure Excel creates the correct chart type.
  • Restart Excel: If the setting is not taking effect, it could be a glitch with the Excel interface. Try closing the workbook and reopening it. This will refresh the application and may clear any temporary issues that were preventing the setting from applying.
  • Check for Absolute References: If you have moved your chart to a different worksheet or changed the source data range, ensure that the chart is still referencing the correct cells. If the chart is linked to a specific range of cells (e.g., Sheet1!A1:B10) and you have moved the data to a new location, the chart will not update unless you manually change the data source.
  • Force a Chart Refresh: Sometimes, Excel may not update the chart immediately after changing a setting. To force a refresh, click anywhere inside the chart area, go to the "Design” tab on the ribbon, and look for the "Refresh” button. If this button is not available, simply press the "F9” key on your keyboard. This will recalculate all formulas and update the chart based on the current settings.

Frequently Asked Questions

Does this method work on vertical bar charts?

Yes, it does. The same "Categories in reverse order" setting can be applied to vertical column charts. When applied to a vertical chart, it will reverse the order of the categories on the horizontal axis, placing the last category at the top and the first category at the bottom. This is often used to show the highest value at the top of the chart.

Will this reverse the order of the legend?

No, the "Categories in reverse order" setting only affects the bars and the category axis itself. It does not change the order of the items in the legend, which is usually tied to the order of the series in the data source. To reverse the legend, you would need to reorder the series in the chart or change the order of the data columns in your spreadsheet.

Can I reverse the order of the values (Y-axis) instead?

Yes, you can. To reverse the order of the values on the vertical axis, you would follow the same steps as above but select the vertical axis (Y-axis) instead of the horizontal axis. In the Format Axis pane, look for the checkbox labeled Categories in reverse order (which may be labeled Categories in reverse order or Values in reverse order depending on your version of Excel). This will make the smallest values appear at the top of the chart and the largest at the bottom.

Does this work in Excel for Mac?

Yes, the functionality is identical on Mac. The primary difference is the location of the menu. Instead of right-clicking and selecting "Format Axis,” you would right-click on the axis and select "Format Axis…” from the context menu. The options in the pane will be the same.

What if the bars are not aligned with the labels?

If the bars are not aligned with the labels, it is usually because of a mismatch in the number of categories or because the chart is not correctly linked to the data source. Ensure that the data range you selected when creating the chart contains the same number of rows as the number of categories you want to display. You can adjust the alignment by clicking on the bars and using the "Format Data Series” options to adjust the overlap or gap width.

Will this affect the axis title?

No, the axis title will remain in its original position and orientation. It will not be affected by the "Categories in reverse order” setting. However, you may need to manually adjust the position of the axis title if the bars are now extending in a different direction, as it might overlap with the bars.