码迷,mamicode.com
首页 > 其他好文 > 详细

Consolidate data by using multiple page fields

时间:2017-02-26 23:35:48      阅读:229      评论:0      收藏:0      [点我收藏+]

标签:new   rtm   add   ref   bar   ext   exist   ice   not   

Consolidate data by using multiple page fields

https://support.office.com/en-us/article/Consolidate-multiple-worksheets-into-one-PivotTable-report-3AE257D2-CA94-49FF-A481-E9FC8ADEEEB5

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:

 

  1. Add the PivotTable and PivotChart Wizard to the Quick Access Toolbar. To do that:

    1. Click the arrow next to the toolbar and then click More Commands.

    2. Under Choose commands from, select All Commands.

    3. In the list, select PivotTable and PivotChart Wizard, click Add, and then click OK.

  2. Click a blank cell (that is not part of a PivotTable report) in the workbook.

  3. On Step 1 page of the wizard, click Multiple consolidation ranges, and then click Next.

  4. On Step 2a page of the wizard, click I will create the page fields, and then click Next.

  5. On Step 2b page of the wizard, do the following:

    1. 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.

    2. Under How many page fields do you want?, click the number of page fields that you want to use.

    3. 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.

    4. Click Next.

  6. On the Step 3 page of the wizard, select between adding the PivotTable to a new or an existing worksheet, and then click Finish.

Consolidate data by using multiple page fields

标签:new   rtm   add   ref   bar   ext   exist   ice   not   

原文地址:http://www.cnblogs.com/chucklu/p/6456022.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!