Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
862 views
in Technique[技术] by (71.8m points)

indexing - How can I used One Choices of TWO Column for INDEX MATCH Function?

Hi is there a way to used choices with one outcome on index match?

E.g. In ColumnA=Item Number List RangeA1-A100, ColumnB=Item Name List RangeB1-B100, ColumnC=Item Description RangeC1-C100, ColumnD=Item Price RangeD1-D100 (Column A-D are LOCK)

In ColumnF, I would like to input only an ITEM NUMBER or ITEM NAME. In ColumnG(contained formula), is were the description of an item will appear based on the item number or the name that is given at ColumnF. In ColumnH(displays the prices of any given item).

I came up with using this formula, but it can only be used the columnA which is ITEM#, cannot not be used for ColumnB. =INDEX($A$2:$D$100,MATCH($F2,$A$2:$A$100,0),MATCH(G$1,$A$1:$D$1,0))

I tried to used this one but it says to many arguments. =INDEX($A$2:$D$100,MATCH($F2,$A$2:$A$100&$B$2:$B$100),MATCH(G$1,$A$1:$D$1,0))

It is possible to combined the two arguments? This allow me to used either an ITEM# OR ITEM NAME. to search from the range the item description and price.

Thank you for any possible suggestion.

question from:https://stackoverflow.com/questions/65843401/how-can-i-used-one-choices-of-two-column-for-index-match-function

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...