Excel - 如何从 pivot table 获取 header 列值并将它们注入 drop-down 列表

Excel - How to get header columns value from pivot table and inject them into a drop-down list

我想检索数据透视表 table 每一列的 header 的所有值,以便将其注入另一个 sheet 的 drop-down 列表.

你能告诉我如何检索这些值吗?

我使用函数 OFFSET

解决了我的问题

对于第header列:

=IFERROR(IF(OFFSET('TABLE PIVOT'!$B;;ROW(C1)-1)=0; "";OFFSET('TABLE PIVOT'!$B;;ROW(C1)-1));0)

对于第header行:

=IFERROR(IF(OFFSET('TABLE PIVOT'!$A;ROW(A1)-1;)=0; "";OFFSET('TABLE PIVOT'!$A;ROW(A1)-1;));0)