Put the age groups in one column with the male and female counts beside them, and make the male counts negative, for example with =-B2 in a helper column, so males plot to the left as the convention expects. Select the age groups and both count columns, then go to Insert → Insert Column or Bar Chart → Clustered Bar.
Right-click a bar and choose Format Data Series. Under Series Options, set Series Overlap to 100% and Gap Width to 0% so the two sides line up as one pyramid.
Right-click the vertical axis, choose Format Axis and under Labels set Label Position to Low, so the age groups sit at the left edge instead of over the bars. If the oldest group lands at the bottom, tick Categories in reverse order under Axis Options.
The left side shows minus signs on the horizontal axis and on the data labels. Apply the custom format #,##0;#,##0 in Format Axis → Axis Options → Number for the axis and in Format Data Labels → Label Options → Number for the labels. The values stay negative; only the display changes.
For a version without a chart, apply Home → Conditional Formatting → Data Bars → More Rules to the male column, tick Show Bar Only and set Bar Direction to Right-to-Left, then give the female column ordinary data bars. Or build in-cell bars with =REPT("|",B2/1000) and right-align the male column; the divisor sets the bar length, so change it to fit your numbers.
A Population Pyramid chart is a specific chart that helps us to present and analyze the population of both genders using age groups.
A population pyramid also called an age pyramid or age picture is a graphical illustration that shows the distribution of various age groups in a population, which forms the shape of a pyramid when the population is growing. In Excel, we can create a population pyramid chart using a bar chart, just like the one below.
Wikipedia

Insert a bar chart and then do a bit of customization, that’s it.
But here is the twist. I have found that apart from this traditional method, we can also use two other methods. And today in this post, I’d like to share these three methods [exact steps] with you. So let’s get started.
Simple Steps to Create a Population Pyramid Chart Using Bar Chart
Before we create this chart, we need to prepare the data: a table with the total population, the female population in negative values, and the male population in positive values.

Note: A column for the total population is not compulsory, but make sure to have the female population in negative values.
If your female numbers are positive, you don’t need to retype them. Add a helper column with the following formula (B2 is the first female value), drag it down, and use this column in the chart:
=-B2
- First of all, we need to insert a bar chart. For this, select the age group, female and male data columns and insert a bar chart from Insert Tab ➜ Insert Column or Bar Chart ➜ 2-D Bar ➜ Clustered Bar.
- Now we have a chart like the one below, and we need to do some customization in it to make a population pyramid.

- From here, we need to put the vertical axis in reverse order. For this, go to Format Axis ➜ Axis Options and tick “Categories in reverse order”.

- After that, go to Format Axis ➜ Axis Options ➜ Labels ➜ change the label position to “Low”.

- Next, we need to change the series overlap to 100% and the gap width to 0%. For this, select a data bar and go to Format Data Series ➜ Series Options.

- In the end, we need to show the negative data labels of the female data bars as positive. For this, select the data labels and go to Format Data Labels ➜ Label Options ➜ Number, select Custom from Category, and add the “#,##0.00;#,##0.00” format.

Congratulations! Our pyramid chart is ready to rock.
The horizontal axis still shows the female side in negative numbers. To fix it, select the horizontal axis, go to Format Axis ➜ Axis Options ➜ Number, and add the same kind of custom format. For whole numbers, use “#,##0;#,##0”, which shows -1,200 as 1,200 (the value itself stays negative).

Use Conditional Formatting to Simply Create a Pyramid Chart in Excel
We can also create a pyramid chart by using conditional formatting, and here are the steps for this.
- First of all, create a table with male and female population data with age groups.

- And then, select a single column, either male or female, and apply conditional formatting data bars from Home Tab ➜ Styles ➜ Conditional Formatting ➜ Data Bars ➜ More Rules.
- After that, in the New Formatting Rule dialog box, tick “Show Bar Only”, add a solid border and change the bar direction (female and male bars should be in opposite directions, like Right-to-Left for female).

- Now, select the second data column and add data bars to it in the same way, and you’ll get a pyramid chart like the one below.

- In the end, for a final touch, add two columns on both sides of the diagram to add data labels.
Boom! Our chart is ready.

Create an In-Cell Population Pyramid Chart in Excel
I am a big fan of REPT and the best thing is you can use it to create a simple population pyramid.
- First of all, create a table like below.

- Now, add the formulas below in the female and male columns and drag them down.
Female Column: =IFERROR(REPT("|",C5*4),"")Male Column: =IFERROR(REPT("|",F5*4),"") - After that, change the font style to Playbill (Font Size – 10) or you can also use Stencil (Font Size – 10).
- In the end, change the font color for both columns, and align the female column to the right and the male column to the left.
The chart is ready.
Here are both formulas again so you can copy them. REPT repeats the “|” character C5*4 times, so change the 4 to make the bars longer or shorter, and IFERROR returns a blank when the cell has text:
=IFERROR(REPT("|",C5*4),"")
=IFERROR(REPT("|",F5*4),"")

Sample File
Conclusion
You might be wondering if a pyramid chart is just for population data, but the truth is you can use it for all kinds of data.
Whenever you need to compare different data points for two different time periods, a pyramid chart is the best to use, for example, sales data for different products for two years.
It’s one of my lists of advanced Excel charts and graphs. I hope you found this tip useful, but do tell me one thing.
Have you ever used a pyramid chart? Or, do you have any other way to create it?
Share your views with me in the comment section; I’d love to hear from you. And, please don’t forget to share this tip with your friends.
Frequently Asked Questions
Why are the male and female bars not in one line?
The Series Overlap is still at its default. Select a bar, go to Format Data Series ➜ Series Options, and set Series Overlap to 100%.
Why are the age groups in the middle of the chart?
The vertical axis sits at zero, which is the middle of the chart. Change its label position to Low (Format Axis ➜ Axis Options ➜ Labels) to move the labels to the left side.
Can I show percentages instead of numbers?
Yes. Divide each value by the total population in helper columns (keeping the female values negative) and use a custom format like 0%;0% for the axis and the data labels.
The convention is that population pyramids always have males on the left.
correct.
Hi,
Your population graph tutorial was quite informative. However, I have observed, that in many Youtube videos there is no mention of the excel version in which the formula or graph can be obtained. A line on excel version would be quite useful for the readers.
Thanks,
M. Mohan
Why *4 ? in In cell Graph.
Hi Punkte, 3 very good explanations. I was just wondering if it is possible to do this for 5 groups, like my teams, and one more question, can you make this with VBA?
I think that your explanations are easy to follow and I like the way you give more than one way to achieve the goal, so I can choose which I understand best.
Keep up the good work, as with you I am learning every day
Ray