admin管理员组文章数量:1122832
How can a PivotTable's height and width be measured dynamically without using VBA (i.e., Even when the PivotTable is modified with slicers or through changes in the Field List)? With 'height' being the number of rows the PivotTable spans and 'width' being the corresponding column amount.
With a structured Table in Excel, one can just reference the name of the Table inside a ROWS() or COLUMNS() -formula to get the dynamic height and width, but is there a comprable way for PivotTables?
Non-robust solution: Use COUNTA() to get the number of non-empty cells in the first column and second row of the PivotTable (Prone to errors; Non-empty data outside the PivotTable or empty data inside the PivotTable).
本文标签: excelDynamic measurement of PivotTable height and width (no VBA)Stack Overflow
版权声明:本文标题:excel - Dynamic measurement of PivotTable height and width (no VBA) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736305280a1932535.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论