I want to create a pie chart in Excel with 33 pieces.
I want for each piece, depending on the value of the cell
green (No issue)
red (Need)
yellow (Opportunity)
For example,
Identifier # Results
1 No issue
2 Opportunity
3 Need
...
33
I created a regular pie chart but it is tedious to individually change the color on each slice.
I would like the color of the slice to be automated.
A pie chart may not be the best choice. It's not easy to label 33 slices clearly. Labeling in a horizontal bar chart will work much better, and the bar chart will probably take up less space and still be legible.
The code below works on either chart type.