根据另一列中的标签使用列中某些单元格的总和制作饼图的方法
Way to make a pie chart using sum of certain cells in a column based on the tags in another column
我有一个电子表格设置为一种支票簿,我想知道是否给定了一个名为“金额”的列,该列记录了单笔交易的各种美元金额。而另一栏“Reason”写的是交易的原因“租房、外出就餐等”。我可以制作一个饼图,如果它们在 Reason 列中有匹配的原因,它将添加 Amount 列中的所有值。
因此,如果我有五个列为“租金”的 Reason 条目,我可以从同一行中的 Amount 列中获取每个单元格的总和。
基本上我想要一个结果图表,显示我在每个原因上花费的总额以及与原因类别匹配的标签。
--编辑
Heres an image of how my spreadsheet is set up currently with the solution of using filters to make a bar chart but I wonder if there's a better way to do this
- 创建包含 A 列(金额)和 B 列(原因)的图表。
- 使用 B 列(原因)创建过滤器
- Select/deselect 您要包含的原因
您也可以考虑使用 切片器进行过滤
我有一个电子表格设置为一种支票簿,我想知道是否给定了一个名为“金额”的列,该列记录了单笔交易的各种美元金额。而另一栏“Reason”写的是交易的原因“租房、外出就餐等”。我可以制作一个饼图,如果它们在 Reason 列中有匹配的原因,它将添加 Amount 列中的所有值。
因此,如果我有五个列为“租金”的 Reason 条目,我可以从同一行中的 Amount 列中获取每个单元格的总和。
基本上我想要一个结果图表,显示我在每个原因上花费的总额以及与原因类别匹配的标签。
--编辑
Heres an image of how my spreadsheet is set up currently with the solution of using filters to make a bar chart but I wonder if there's a better way to do this
- 创建包含 A 列(金额)和 B 列(原因)的图表。
- 使用 B 列(原因)创建过滤器
- Select/deselect 您要包含的原因
您也可以考虑使用 切片器进行过滤