[英]Excel - How to get header columns value from pivot table and inject them into a drop-down list
I would like to retrieve all values of the header of each column of a pivot table in order to inject that into a drop-down list in another sheet.我想检索 pivot 表的每一列的 header 的所有值,以便将其注入另一张表的下拉列表中。
Could you tell me please how to retrieve the values?你能告诉我如何检索这些值吗?
I solve my problem by using the function OFFSET
我通过使用 function OFFSET
解决了我的问题
For the header of the column:对于列的 header:
=IFERROR(IF(OFFSET('TABLE PIVOT'!$B$4;;ROW(C1)-1)=0; "";OFFSET('TABLE PIVOT'!$B$4;;ROW(C1)-1));0)
For the header of the row:对于该行的 header:
=IFERROR(IF(OFFSET('TABLE PIVOT'!$A$5;ROW(A1)-1;)=0; "";OFFSET('TABLE PIVOT'!$A$5;ROW(A1)-1;));0)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.