Consolidate data by using multiple page fields
Consolidate data by using multiple page fields
You can create multiple page fields and assign your own item names for each source range.
This lets you create partial or full consolidations; for example, one page field that consolidates Marketing and Sales apart from Manufacturing, and another page field that consolidates all three departments.
To create a consolidation that uses multiple page fields, do the following:
-
Add the PivotTable and PivotChart Wizard to the Quick Access Toolbar. To do that:
-
Click the arrow next to the toolbar and then click More Commands.
-
Under Choose commands from, select All Commands.
-
In the list, select PivotTable and PivotChart Wizard, click Add, and then click OK.
-
-
Click a blank cell (that is not part of a PivotTable report) in the workbook.
-
On Step 1 page of the wizard, click Multiple consolidation ranges, and then click Next.
-
On Step 2a page of the wizard, click I will create the page fields, and then click Next.
-
On Step 2b page of the wizard, do the following:
-
Go back to the workbook and select the cell range, and then back on the PivotTable and PivotChart Wizard, click Add.
TIP: If the cell range is in another workbook, open the workbook first to make it easier to make select the data.
-
Under How many page fields do you want?, click the number of page fields that you want to use.
-
Under What item labels do you want each page field to use to identify the selected data range?, for each page field, select the cell range, and then enter a name for that range.
Example
-
If you selected 1 under How many page fields do you want?, select each range, and then enter a different name in the Field One box. If you have four ranges and each one corresponds to a different quarter of the fiscal year, select the first range, enter Q1, select the second range, enter Q2, and repeat the process for Q3 and Q4.
-
If you selected 2 under How many page fields do you want?, do the same as the previous example in the Field one box. Then, select two ranges, and enter the same name, such as H1 and H2, in the Field two box. Select the first range, enter H1, select the second range, enter H1, select the third range, enter H2, select the fourth range, and then enter H2.
-
-
Click Next.
-
-
On the Step 3 page of the wizard, select between adding the PivotTable to a new or an existing worksheet, and then click Finish.
作者:Chuck Lu GitHub |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
2016-02-26 Array.Copy vs Buffer.BlockCopy
2015-02-26 观察者模式和事件的不同之处
2015-02-26 Simple Factory vs. Factory Method vs. Abstract Factory【简单工厂,工厂方法以及抽象工厂的比较】