Home > Topics > excel > Excel chart learning: Create a multi-series multi-condition histogram with target values

Excel chart learning: Create a multi-series multi-condition histogram with target values

青灯夜游
Release: 2022-07-25 19:21:37
forward
9145 people have browsed it

In the previous article " Sharing practical Excel skills: Do you know how to use these 5 shortcut keys? ", we learned about 5 star shortcut keys. Today we share an Excel chart tutorial, which can be said to be a very magical production method, you will never imagine it!

Excel chart learning: Create a multi-series multi-condition histogram with target values

Forms are almost a must-have tool for every workplace person. The forms we make will be sent to leaders, employees or customers. It is especially important to create beautiful and easy-to-understand tables. Today I will teach you a stacked column chart with target horizontal lines and automatic color change.

1. Learning Objectives

The profit and growth rate of an existing product in the three years from 2015 to 2017 need to be produced as follows Bar chart. Horizontal lines are used to represent the set profit and growth rate goals, green columns represent completed goals, and red columns represent uncompleted goals. The main purpose of this bar chart is to highlight which profits and growth rates from 2015 to 2017 have achieved the target and which have not.

Excel chart learning: Create a multi-series multi-condition histogram with target values

We need to meet the following requirements:

1. Each year needs to include two data, profit and growth rate, and they do not affect each other;

2. There is a target horizontal line for each column bar;

3. For profit and growth rate column bars, if it exceeds or just reaches the target horizontal line, it will appear green. Otherwise it is red;

The original data is as follows:

Excel chart learning: Create a multi-series multi-condition histogram with target values

## 2. Initial approach

Basically, the initial idea is to select the A1:C4 data, insert the clustered column chart, and get the following picture, which has a certain gap with the target picture:

1. The target value is missing, It is impossible to know from the picture whether the plan has been realized;

2. The legend has been added, making the entire composition not compact enough, and readers need to scan left and right, distracting attention;

3. Profit and growth The rate does not change color depending on whether the plan is completed;

Excel chart learning: Create a multi-series multi-condition histogram with target values

3. Solution

(1) Processing of original data

In order to achieve the target histogram, the original data needs to be processed and certain auxiliary data added.

Excel chart learning: Create a multi-series multi-condition histogram with target values

Lines 2, 5, 8, and 11 are placeholder data to control the intervals of each year. Some data in the table are extrapolated from other data.

F3:

=IF(C3>=E3,C3,0)

G3:

=IF(C3

I4:

=IF(D4>=H4,D4,0)

J4:

=IF(D4

The drawing steps are as follows:

Select A1:B11 and E1:J11 as the drawing data. First select A1:B11, hold down the Ctrl key and then select E1:J11 on the Windows system, hold down the Command key on the Mac system and then select E1:J11. Insert a column chart and select stacked column chart;

Excel chart learning: Create a multi-series multi-condition histogram with target values

Select the chart title and right-click to delete the title;

Excel chart learning: Create a multi-series multi-condition histogram with target values

Select the legend item below the chart, right-click and select "Format Legend" to display the legend settings on the right side of the chart;

Excel chart learning: Create a multi-series multi-condition histogram with target values

(2) Processing objectives Profit and target growth rate data

Select the "Planned Profit" legend on the right side of the chart, right-click and select "Change Chart Type", change the chart type to XY (scatter chart);

Excel chart learning: Create a multi-series multi-condition histogram with target values

Select the "Planned Profit" legend again, right-click and select "Format Data Series". In the pop-up dialog box, select the series to be drawn on the main coordinate axis, so that the scattered The point chart shares the same coordinate axis as the column chart;

Excel chart learning: Create a multi-series multi-condition histogram with target values

Excel chart learning: Create a multi-series multi-condition histogram with target values

Select the chart and "Chart Design" will appear in the menu bar option, click "Add Chart Element", select "Error Bars" in the drop-down menu, click "Other Error Bar Options", and select "Planned Profit" in the pop-up window;

1Excel chart learning: Create a multi-series multi-condition histogram with target values

What we need is a horizontal line, and the vertical error bars need to be deleted. Select the vertical error bars, right-click and select "Format Error Bars", click and set the vertical error bars to no lines.

1Excel chart learning: Create a multi-series multi-condition histogram with target values12-Excel chart learning: Create a multi-series multi-condition histogram with target values

Select the horizontal error bar, set the direction of the horizontal error bar to "Both", the wireless end, the error amount is fixed at 0.5, the color is blue, and the width is 1.5 pound.

1Excel chart learning: Create a multi-series multi-condition histogram with target values

1Excel chart learning: Create a multi-series multi-condition histogram with target values

Follow the above steps and perform the same operations on the planned growth rate data (change to scatter plot, delete vertical error bars, change Horizontal error bar format), the final effect is as shown in the chart below.

1Excel chart learning: Create a multi-series multi-condition histogram with target values

(3) Beautify the chart

Further beautify the obtained chart, mainly including:

Change data a in placeholder rows 2, 5, 8, and 11 to a space (delete a and enter a space). Be careful not to clear the data, otherwise the abscissa will not be centered;

Select the right Side legend "Planned Profit", right-click, select Format Data Series, select Excel chart learning: Create a multi-series multi-condition histogram with target values, click Mark, select "Data Marking Options", select "None", operate similarly for "Planned Growth Rate";

1Excel chart learning: Create a multi-series multi-condition histogram with target values

1Excel chart learning: Create a multi-series multi-condition histogram with target values

Select the "Growth Rate Red" legend, right-click, and select "Format Data Series" in the pop-up window. Set the gap width in the data series format of the column chart to 50%. This will be applied to all column bars in the chart, making the width of all column bars wider;

1Excel chart learning: Create a multi-series multi-condition histogram with target values

1Excel chart learning: Create a multi-series multi-condition histogram with target values

Click Excel chart learning: Create a multi-series multi-condition histogram with target values, click the "Fill" option, fill the growth rate (green) and profit (green) with green, the growth rate (red) and profit (red) is red. This needs to be set once for each series;

Excel chart learning: Create a multi-series multi-condition histogram with target values

Select the legend and press delete to delete the legend; select the column bar, right-click and select Add Data Label for each Add data labels to each series;

2Excel chart learning: Create a multi-series multi-condition histogram with target values

#Because in our auxiliary data, there are several useless "0"s that are also regarded as cartographic data. After adding data labels, it is displayed Out. So we can delete them manually. Click twice on the "0" tag that needs to be deleted. When the selected state shown below appears, click "delete" to delete it.

2Excel chart learning: Create a multi-series multi-condition histogram with target values

Click on the vertical axis, after selecting it, press "delete" to delete the vertical axis;

2Excel chart learning: Create a multi-series multi-condition histogram with target values

Select the horizontal axis, single Right-click and select "Format Axis". Click Excel chart learning: Create a multi-series multi-condition histogram with target values, in the line, select the no line option, so that the vertical lines between the years on the horizontal axis can be removed;

2Excel chart learning: Create a multi-series multi-condition histogram with target values

2Excel chart learning: Create a multi-series multi-condition histogram with target values

##In order to explain the function of the horizontal line more clearly, you can insert a text box on the chart and add a legend of the target value horizontal line.

2Excel chart learning: Create a multi-series multi-condition histogram with target values

IV. Key Points Review

A qualified chart can reflect the professionalism of the producer. Allow readers to quickly grasp the key points. The target profit and target growth rate horizontal lines have been added to the column chart created this time, so you can see at a glance whether the plan has been completed. There are also some difficult points in this article that require everyone to think carefully before they can draw inferences and apply them to their daily work.

1. Original data is not equal to cartographic data. In most cases, mapping data needs to be obtained after processing the original data, sometimes splitting the data, and sometimes adding auxiliary data. Because the colors of profit and growth rate here are different, and the target data shows horizontal lines, they must be separated;

2. How to make error bars.

5. Follow-up Thoughts

Although the final bar chart is not bad, if the annual profits can be put together, the annual profits Growth rates, taken together, can better show changes over time. Please think about how to process the original data and create the following column chart.

2Excel chart learning: Create a multi-series multi-condition histogram with target values

Related learning recommendations: excel tutorial

The above is the detailed content of Excel chart learning: Create a multi-series multi-condition histogram with target values. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:itblw.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template