简体   繁体   中英

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.

Could you tell me please how to retrieve the values?

I solve my problem by using the function OFFSET

For the header of the column:

=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:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM