简体   繁体   中英

Populate column based on dropdown selection

截图

I have an Excel worksheet with two tables: Table 1 serves as a summary table and table 2 has 12 columns each representing a month. In table 2 I have unique data stored under each month. I have a dropdown list above one of the table 1 columns and this dropdown list consist of the month names.

I want to select a month from the dropdown list and have the data of that month stored in table 2 to basically mirror in table 1 for summary.

Is this possible and if so how?

I put my Table2 in A1 through L18 and my Table1 in column N . In N1 enter the drop-down and in N2 enter:

=INDEX(A$2:L$18,ROWS($1:1),MATCH($N$1,A$1:L$1,0))

and copy down:

在此输入图像描述

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