Age distribution graphs are very powerful tools for visualizing the ages of different genders, ethnicities, and groups of different ages. It not only gives clarity in representing the ages but also makes it look appealing to the viewers. Excel has some amazing features to make a graph to represent age distribution. In this article, we will show how to create age distribution graph in Excel.
Download Practice Workbook
You can download the practice book here.
2 Easy Ways to Create Age Distribution Graph in Excel
In this article, we will show 2 ways to create and represent age distribution graph in Excel. Firstly, we will create a graph of age distribution that has no space between the two existing groups and the Y-axis is to the left. In the second method, we will create a graph that has its Y-axis value in the middle.
1. Graph Without Gap in Between
In this instance, we will have the Y-axis value to the left of the graph. To do that, first, we will sum all the people of all ages of a particular group using the SUM function. Then, we will calculate the percentage of each group contributing to the total. Finally, we will plot the graph. Follow the steps below to do so.
Steps:
- Firstly, select the C11 cell and write the following formula,
=SUM(C5:C10)
- Then, hit Enter.
- Consequently, we will have the summation of males of different ages.
- Do the same for the Female group.
- Then, select the E5 cell and type the following formula,
=-(C5/$C$11)
- Hit Enter.
The formula has a minus sign in front of it. It is because we want to plot this data to the left of the chart.
- As a result, we will have the percentage of males belonging to that age group.
- Lower the cursor down to the last data cell to autofill.
- After that, go to the Home tab.
- From there, select the % sign under the Number option.
- As a result, the data will be presented in a percentage format.
- Meanwhile, click on the F5 cell and write the formula below,
=D5/$D$11
- Then, hit Enter.
- As a result, we will have the proportion of females contributing to the total from that age group.
- Move the cursor down to autofill the rest of the cells.
- Convert the proportion of females into percentages in the same way as males.
- Afterward, select the Age Group, Male%, and Female% columns.
- After that, select the Insert tab.
- Then, choose the Insert Column or Bar Chart option.
- Finally, from the drop-down, select the Stacked Bar Chart.
- Consequently, we will have our chart for our data.
- Firstly, select the labels on the graph.
- Secondly, choose the Series Options tab.
- Thirdly, choose Labels.
- Finally, from the drop-down of the Label Position option select Low.
- As a result, the data labels will be to the left.
- Select the X-axis label.
- Then, go to the Axis Options option.
- Click the Number option.
- Then, in the box under the Format Code option write the following,
#,##0%;[Black]#,##0%
- Finally, click Add.
- Consequently, all the negative values in the X-axis will be gone.
- Now, click on the bars of the Female group.
- Then, select the plus sign to the right of the graph.
- Finally, check the Data Labels box.
- As a result, we will have labels on the data. Now, we need to reposition it.
- So, select the data labels.
- Go to the Label Options tab.
- Then, mark the oval beside Inside End under the Label Position option.
- As a result, the labels will be repositioned to the far right of the graph.
- Now, repeat the process for the Male% column.
- The only difference is, in this case, check the Inside Base oval instead of the Inside End oval.
- Finally, we can present our Age Distribution graph.
Read More: How to Create Age and Gender Chart in Excel (3 Examples)
Similar Readings
- How to Calculate Retirement Age in Excel (4 Quick Methods)
- How to Calculate Age from Birthday in Excel (8 Easy Methods)
- Group Age Range in Excel with VLOOKUP (With Quick Steps)
- How to Calculate Age in Excel in dd/mm/yyyy (2 Easy Ways)
- How to Calculate Average Age in Excel (7 Easy Methods)
2. Graph with Gap in Between
In the previous method, we positioned our Y-axis value on the left. In this method, we will set it in the center. Also, in this method too we will have to sum the number of people in a particular group and then calculate the proportion of people in each age group. Those steps will be the same as the previous method. So, here will start with inserting a graph. Another thing is, in this method, we will plot another column of data and the name of the column is Gap. This will allow us to have space between the two groups in the plot and insert the Y-axis value in the center.
Steps:
- Firstly, select the entire data.
- Secondly, choose the Insert tab.
- Thirdly, click on the Insert Column or Bar Chart option.
- Finally, from the available options, select the Stacked Bar chart.
- Consequently, we will have a graph with a Gap data in between the main data.
- Select the Gap data.
- Then, go to Series Options.
- From the drop-down of Fill, select the No Fill command.
- Finally, select No Line under the options of Border.
- Then, select the plus sign on the right upon selecting the data in the gap.
- Check the Data Labels option.
- As a result, we will have 0.1 in each level which is the value of each cell in the Gap column.
- To change that, go to the Label Options tab.
- Then, first, uncheck the Value checkbox.
- After that, check the Category Name box.
- Consequently, we will have the Y-axis value in the middle.
- Now, select the data labels on the Male% data and delete them.
- Then, select the X-axis values.
- Go to the Axis Options.
- Select the Number option.
- Finally, under the box of the Format Code option write the following,
#,##0%;[Black]#,##0%
- Click on the Add command.
- As a result, the X-axis will have no negative value.
- Then, select the Gap axis label and delete it.
- Then, follow the same steps as the previous method to add labels to the data.
- Finally, we will have our Age Distribution graph with Y-axis values in the middle.
Read More: How to Make Age Pyramid in Excel (2 Suitable Methods)
Conclusion
In this article, we have discussed 2 easy ways to create an age distribution graph in Excel. In these examples, we did not format the graph in simple ways. Readers could decorate the graph according to their tastes. However, the basic steps will be the same as this article.
Related Articles
- How to Convert Date of Birth to Age in Excel (3 Easy Ways)
- How to Calculate Age in Excel for Entire Column
- Excel VBA: Calculate Age from Date of Birth
- How to Calculate Age in Excel from ID Number (4 Quick Methods)
- Calculate Age in Excel in Years and Months (5 Easy Ways)
- How to Calculate Age on a Specific Date with Formula in Excel