To create a bar chart with a table underneath in Excel, you use the "Data Table" chart element. This feature allows you to display the raw numbers directly below the X-axis of your chart, providing the visual impact of a graph alongside the precision of a spreadsheet. This is ideal for presentations where viewers need to see the exact values without glancing back and forth between a separate table and the chart.
What You'll Need
- Microsoft Excel (Desktop version for full formatting options).
- A dataset organized in columns or rows with clear headers (e.g., "Month" in one column and "Sales" in the next).
Step-by-Step
- Prepare Your Data: Ensure your data is clean. Place your labels (categories) in the left column and your values (numbers) in the right column. Highlight the entire range, including the headers.
- Insert the Bar Chart: Go to the Insert tab on the top ribbon. In the Charts group, click the bar chart icon (Insert Column or Bar Chart) and select the first 2-D Clustered Column option.
- Add the Data Table: With the chart selected, look for the Chart Elements button (the green plus sign + that appears at the top-right corner of the chart area). Check the box labeled Data Table.
- Choose Table Style: Click the arrow next to the Data Table checkbox. You will see two options:
- With Legend Keys: This includes a small colored square next to the series name in the table, matching the color of the bars.
- No Legend Keys: This displays only the text and numbers for a cleaner look.
- Remove the Legend: Since the data table now identifies which series is which, the floating legend (usually at the bottom or right) is often redundant. Click the Chart Elements (+) button and uncheck Legend to create more room for the table.
- Adjust Chart Area: Click and drag the bottom handle of the chart area downward. Because the data table is anchored to the bottom of the plot area, expanding the overall chart size ensures the table does not overlap with the X-axis labels.
- Format the Table Text: Click once on the data table numbers to select the entire table. Use the Home tab to change the font size, color, or number formatting (e.g., adding currency symbols or decimals) to make the data more readable.
Common Mistakes
- Overcrowding the Axis: Keeping both the X-axis category labels and the Data Table can look cluttered. If the Data Table contains the category names, you can remove the X-axis labels by clicking Chart Elements (+) and unchecking Axes > Primary Horizontal.
- Ignoring Scale: If your bars are very tall, they may push the data table off the visible screen or make the plot area too small. Adjust the Y-axis maximum value to create more white space.
- Using 3D Charts: Data tables often align poorly with 3D bar charts, leading to a disjointed visual appearance. Stick to 2-D charts for professional data tables.
Tips
- Consistent Formatting: Ensure the number format in your data table matches the format in your original spreadsheet cells for consistency.
- Color Coordination: If you have multiple data series, use "With Legend Keys" so the reader can instantly map the table row to the correct colored bar.
- White Space: Increase the chart height slightly more than you think you need. A cramped data table is harder to read and looks less professional.
Troubleshooting
If the data table does not appear or looks incorrect, try these steps:
- Table is missing: Ensure you are using a 2-D chart. Certain specialized chart types (like Treemaps or Sunbursts) do not support data tables.
- Numbers are cut off: This usually happens when the chart area is too small. Drag the bottom border of the entire chart object downward to give the table more room.
- Wrong data showing: The data table pulls directly from the chart's data source. If the numbers are wrong, right-click the chart, choose Select Data, and verify that the correct cell range is highlighted.
- Formatting won't change: If you cannot select the table, make sure you are clicking specifically on the numbers below the axis, not on the bars or the axis labels themselves.
Frequently Asked Questions
Can I move the table to the top of the chart?
No, Excel's built-in Data Table element is hard-coded to appear at the bottom of the chart. If you need a table at the top, you must manually create a table using cells and place the chart underneath it.
Does the data table update automatically?
Yes. Because the table is linked to the chart's data source, any changes you make to the numbers in your spreadsheet will instantly reflect in both the height of the bars and the values in the table.
Can I format individual cells within the chart table?
No. Excel treats the data table as a single object. You can change the font, size, and color for the entire table, but you cannot bold or highlight a single specific cell within that table.
How do I remove the data table once I've added it?
Click the Chart Elements (+) button at the top-right of the chart and uncheck the Data Table box.
Will this work in Excel for the Web?
Yes, though the interface may differ slightly. Look for the Chart tab that appears when the chart is selected, then find the Chart Elements menu to enable the Data Table.