In the previous article "Sharing practical Excel skills: How to quickly search and replace" we learned how to quickly search and replace using Excel combined with Word for collaborative office work. The following article will introduce you to an Excel technique to see how to quickly create a two-color chart. Come and collect it and learn it!
In Excel, our common charts include area charts, bar charts, column charts, line charts, donut charts, etc. I will share it with you in the future.
Today, let’s take a look at a two-color column chart case: Excel stacked column chart production.
The data source is the sales performance of each employee in the sales department.
Now you need to use charts to show who's performance is higher than the average performance and who's performance is lower than the average performance.
Xiaoya uses a stacked column chart to present it. Those above the average are shown in blue, and those below the average are shown in red.
#The chart above is actually relatively simple. I wonder if you can make it?
The idea of making a stacked column chart in excel is as follows:
First, use the auxiliary column to get the data above and below the average.
Enter the formula in cell C2: =IF(B2>AVERAGE(B$2:B$7),B2,NA())
Cell D2 Enter the formula: =IF(B2>AVERAGE(B$2:B$7),NA(),B2)
Formula explanation: First use the AVERAGE function to calculate the value in cells B2:B7 The average, and then use the IF function to make a judgment. If the value of B2 is greater than the average, return the value of B2 itself, otherwise return the error value #N/A.
Special Note: The role of #N/A in the chart is to occupy space.
Second, select the area to be charted and insert a stacked column chart.
Select A1:A7, then hold down the Ctrl key, and then select C1:D7. Insert a stacked column chart.
Third, set the chart parameters
Select the chart grid line and press the Delete key to delete it.
Double-click any column in the chart and set the category spacing to about 50% to make the chart look fuller.
Change the data series color and fill chart background color.
Finally, the animation demonstration diagram produced by the chart is attached for your reference and study:
Related study recommendations: excel tutorial
The above is the detailed content of Practical Excel skills sharing: quickly create two-color charts. For more information, please follow other related articles on the PHP Chinese website!