[英]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.