简体   繁体   English

Excel根据列表选择从列中获取一组值

[英]Excel get set of values from a column based on list choice

I have a excel grid with following structure: 我有一个具有以下结构的Excel网格:

在此处输入图片说明

IN cell Y2 (Choose) there is a list with the text of the cells of V3, W3 and X3(TIC2, LP3 and MAT4). 在Y2单元格(选择)中,有一个包含V3,W3和X3单元格文本的列表(TIC2,LP3和MAT4)。

I want based on the users choice in cell Y2, the range of cells (Y3:Y13) to be populated with the respective values of the column with that name. 我想根据用户在单元格Y2中的选择,使用该名称的列的各个值填充单元格的范围(Y3:Y13)。 For example, If the users chooses LP3 it should fill Y3 to Y13 withe the values present in column W3:W13. 例如,如果用户选择LP3,则应使用列W3:W13中存在的值将Y3填充到Y13。

I know how to use VLOOKUP for a value, but this is different. 我知道如何使用VLOOKUP作为值,但这是不同的。 Any suggestion? 有什么建议吗?

In Y3 put: 在Y3中放:

=INDEX(V3:X3,MATCH($Y$2,$V$3:$X$3,0))

And copy down. 并抄下来。

Or you can use an HLOOKUP: 或者,您可以使用HLOOKUP:

=HLOOKUP($Y$2,$V$3:$X$1040000,ROW()-2,FALSE)

Again, put that in Y3 and copy down. 同样,将其放在Y3中并抄下来。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 根据条件Excel计算另一个列表中一列中的唯一值 - Counting the unique values in a column from another list, based on criteria Excel 根据列值从 excel 中获取行值 - Get the Row values from a excel based on the column Value 我如何根据其他数组的值在列中列出数组的值 - Excel VBA - Ho do I list values of an array in a column based on values from other arrays - Excel VBA Excel-基于另一个列集替换匹配的列值 - Excel - Replace matching column values based on another column set 在Excel中,如何根据另一列上的搜索条件从列中获取逗号分隔的值 - In excel, how to get comma separated values from a column based on search criteria on another column 如何在Excel中基于另一列从一列获取和连接值 - How to get and concatenate values from one column based on another column in Excel 根据另一列的选择,从一列的下拉列表中完成一项 - Completing an entry from a drop down list in one column, based on the choice from another column excel:根据条件列出范围列的所有值 - excel: list all values of a column of a range based on a condition Excel:根据相应行打印列值列表? - Excel: print list of column values based on corresponding row? Excel-值列表中的条目基于某些其他列值 - Excel - Entries in List of values be based on some other column value
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM