查找与搜索词相匹配的所有值,而不仅仅是一个。 [英] Vlookup all the values matching the search term instead of just one.
本文介绍了查找与搜索词相匹配的所有值,而不仅仅是一个。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
= Vlookup(*& B3&)我需要所有匹配的搜索结果索引而不是1。 *,A:A,1,0)
由于您有Excel标签,因此使用以下公式来计算excel:
= IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($ A $ 2:INDEX(A:A,MATCH(ZZZ,A :A)))/(ISNUMBER(SEARCH($ B $ 3,$ A $ 2:INDEX(A:A,MATCH( ZZZ,A:A))))),ROW(1:1))), )
复制/拖拽足够您的需求。
So the following formula returns only the first value from the range. I kinda need all the matching search results indexed instead of just 1.
=Vlookup("*" & B3 & "*",A:A,1,0)
解决方案
With Google Sheets use Query:
=QUERY(A:A,"select A where A contains """ & B3 &"""")
Since you have the Excel tag use this formula for excel:
=IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($A$2:INDEX(A:A,MATCH("ZZZ",A:A)))/(ISNUMBER(SEARCH($B$3,$A$2:INDEX(A:A,MATCH("ZZZ",A:A))))),ROW(1:1))),"")
Copy/drag it down sufficient for your needs.
这篇关于查找与搜索词相匹配的所有值,而不仅仅是一个。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文