Dynamic Learning Excel chart

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/violette_lx/article/details/102753963

Liao Xuefeng Excel dynamic mapping program

Use building support table

Dynamic excel chart
Goal: Select recharge amount, the amount of withdrawals, the amount of investment, of which a sum payment, a line chart showing each month corresponding.
Main operations: selection drop-down list data validity, select the corresponding region SUMIFS, line drawing in FIG.

1, blank cells selected - data validation (Alt + DL) - sequences permitting - selection sequence regions - forming drop-down menu.
Here Insert Picture Description
2, the month information is copied as a new line to construct the assistance data
3, using offset function, ctrl + A open function panel, select the corresponding data
Here Insert Picture Description
4, according to the ranks of the relationship between adjustment formula, = SUMIFS (C3: C6, $ B $ 3: $ B $ 6, $ M $ 1), the formula will be copied.
5, the insertion line chart
1) above the strip is inserted into the tool - Insert line chart
2) Chart Tools - Design - Data - data selection
3) select the data source, add data, the month is added to the vertical axis
Here Insert Picture Description
5, as the cell selection data validation different projects, line chart changes accordingly. Chart landscaping can do, such as covering the chart data.

The use of offset and match functions

= offset (base point, the number of offset rows, the number of offset columns [rows new reference], [the new number of columns referenced])
the second parameter positive, downward shift point, a negative point is shifted upwards
third parameters positive number, point shifted to the right, a negative offset to the left point
fourth parameter and fifth parameter optional, omit the parameter, the new reference point and area as large as

需要注意如果公式中引用区域不是1*1大小会报错,这个时候可以在公式的地方选择对应大小的单元格,用shift+ctrl-enter即可。

=MATCH(lookup_value,lookup_array,match_type)
Lookup_value 为需要在数据表中查找的数值,可以为数值(数字、文本或逻辑值)或对数字、文本或逻辑值的单元格引用。
Lookup_array 可能包含所要查找的数值的连续单元格区域。Lookup_array 应为数组或数组引用。
Match_type 为数字 -1、0 或 1。
为1时,函数查找小于或等于 lookup_value 的最大数值,Lookup_array 必须按升序排列
为0时,函数查找等于 lookup_value 的第一个数值,Lookup_array 可以按任何顺序排列
为-1时,函数查找大于或等于 lookup_value 的最小数值,Lookup_array 必须按降序排列
如果省略 match_type,则假设为 1

1, look at the analysis of ideas on how to offset and the match is to obtain the data, this part of the actual can not write. Found that only offset function different from the second parameter can be used to match to get the second parameter.
Here Insert Picture Description
2, Alt + DL open data validation, selection sequence, making the drop-down list.
Formula - defined name - defined name (! Name to remember this name, use the back)
reference position with the offset function to represent the second parameter is matched with a match. OK, you can see if there is a new name in the Name Manager.
Here Insert Picture Description
3, insert - bar chart form design - Select Data - add legend items, pay attention to where you want to enter a table name, enter only Case 2 offset data can be!. (Offset data is the previous step to customize the name). The horizontal axis labels can be selected month.
! [Insert Picture description here] (https://img-blog.csdnimg.cn/2019102615404314.pngHere Insert Picture Description

Guess you like

Origin blog.csdn.net/violette_lx/article/details/102753963