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

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!

Statement
This article is reproduced at:部落窝教育. If there is any infringement, please contact admin@php.cn delete
MEDIAN formula in Excel - practical examplesMEDIAN formula in Excel - practical examplesApr 11, 2025 pm 12:08 PM

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Google Spreadsheet COUNTIF function with formula examplesGoogle Spreadsheet COUNTIF function with formula examplesApr 11, 2025 pm 12:03 PM

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

Excel shared workbook: How to share Excel file for multiple usersExcel shared workbook: How to share Excel file for multiple usersApr 11, 2025 am 11:58 AM

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

How to convert Excel to JPG - save .xls or .xlsx as image fileHow to convert Excel to JPG - save .xls or .xlsx as image fileApr 11, 2025 am 11:31 AM

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

Excel names and named ranges: how to define and use in formulasExcel names and named ranges: how to define and use in formulasApr 11, 2025 am 11:13 AM

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

Standard deviation Excel: functions and formula examplesStandard deviation Excel: functions and formula examplesApr 11, 2025 am 11:01 AM

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

Square root in Excel: SQRT function and other waysSquare root in Excel: SQRT function and other waysApr 11, 2025 am 10:34 AM

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Google Sheets basics: Learn how to work with Google SpreadsheetsGoogle Sheets basics: Learn how to work with Google SpreadsheetsApr 11, 2025 am 10:23 AM

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool