【问题标题】:Is there a way to get pivot tables to repeat all row labels?有没有办法让数据透视表重复所有行标签?
【发布时间】:2015-01-16 06:58:56
【问题描述】:

当我将列标签移动到行标签时,它会在行标签中创建一堆重复值,但 excel 将这些值留空。

http://screencast.com/t/tBuxJZze5YN

我想让那些用重复值填写,因为我需要这种格式。现在我正在使用脚本用上面的值填充空单元格,但似乎应该有更简单的方法,但我在我认为的设计选项卡下找不到它。

【问题讨论】:

  • 右键单击数据透视表并查看数据透视表选项下可用的各种布局选项。

标签: excel pivot-table


【解决方案1】:

有两种方法。

选项 1:

如果您有 Excel 2010 或更高版本,则可以应用“重复项目标签”功能。此功能可确保重复所有项目标签以在枢轴中创建一个连续单元格的实体块。

- Place your cursor anywhere in your pivot table. 
- Then go up to the Ribbon and select Design -> Report Layout -> Repeat All Item labels.

选项 2:

利用 Excel 的 GOTO Special 功能。

- First, turn pivot tables into hard data by doing a Copy-Past Special-Values on them. 
- Select the range you are working with, then go to the Home tab - > Find & Select -> Go to Special. This will activate the Go To Special dialog box.
-  Choose the option for Blanks. The result is that only the blank cells are selected. This is effectively the same as holding down the Ctrl key while selecting all the blank cells one by one with the mouse.
- Type an equal sign, and press the up-arrow key. The equal sign tells Excel that you're starting a formula in the active cell, while pressing the up-arrow key points to the cell above the active cell.
- Pressing 'Ctrl+Enter' enters the same formula in all the selected cells.

希望这会有所帮助。

【讨论】:

  • 拥有旧版本的 Excel,但选项 2 效果很好 - 谢谢
猜你喜欢
  • 2022-01-28
  • 2018-06-05
  • 2011-01-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-06-07
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多