当我将列标签移动到行标签时,它会在行标签中创建一堆重复值,但excel会将这些值留空。
http://screencast.com/t/tBuxJZze5YN
我希望那些填充了重复值,因为我需要这种格式。现在我使用脚本填充上面带有值的空单元格,但似乎应该有一个更简单的方法,但我无法在设计选项卡下找到它,我认为它将是
答案 0 :(得分:0)
有两种方法可以做到。
如果您使用的是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.
利用Excel的GOTO特殊功能。
- 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.
希望这有帮助。