简体   繁体   English

Excel 可以返回多个结果的查找索引

[英]Excel lookup index that can return multiple results

I want to do an index lookup that can potentially return multiple results.我想做一个可能返回多个结果的索引查找。 I'm trying filter, and that doesn't seem to be working.我正在尝试过滤器,但这似乎不起作用。 Any suggestions?有什么建议么?

My spreadsheet looks like this:我的电子表格如下所示:

FinalResult tab:
A             V
Index  ....   ErrorState
A1234  ....   No results
A3400  ....   #SPILL!

with V formula being: =FILTER(List_State_11.18.2021:A2,R81.List_State_11.18:2021,A2:A81=FinalResult!A2, "No results") V 公式为: =FILTER(List_State_11.18.2021:A2,R81.List_State_11.18:2021,A2:A81=FinalResult!A2, "No results")

And the List_State_11.18.2021 tab looks like this:

    A          J
    Device ... Display_Text
    A1234  ... Not Found
    A2345  ... Fault
    A3400  ... Not Found
    ...

But every Device in List_state tab does not have Display_Text to find.但是 List_state 选项卡中的每个设备都没有要查找的 Display_Text。 Ie. IE。 Not every Index on the FinalResult tab has a fault to find in List_state.并非 FinalResult 选项卡上的每个索引都可以在 List_state 中找到错误。 There's about 80 items in List_state with repeats for devices (multiple faults), and 300 indices in FinalResult with no repeats for index (exclusive). List_state 中有大约 80 个项目,设备重复(多个故障),FinalResult 中有 300 个索引,索引没有重复(不包括)。 I want to return all faults found for each index, if found.如果找到,我想返回为每个索引找到的所有故障。

In my use of filter, it's finding all No results or #Spill,.在我使用过滤器时,它会找到所有 No results 或 #Spill,。 with no other results, How do I fix what I have, or what other method can I use to find no, one, or multiple faults in my List_state tab?在没有其他结果的情况下,我该如何修复我所拥有的,或者我可以使用什么其他方法在我的 List_state 选项卡中找到没有、一个或多个故障? and put it in my FinalResult tab?并将其放在我的 FinalResult 选项卡中?

I checked, and the #spill.我检查了,还有#spill。 is not one with multiple matches.不是一个有多个匹配的。 The index for the spill result is not in the List_state tab.溢出结果的索引不在 List_state 选项卡中。

I've never done a lookup like this, so it's more than likely user error.我从来没有做过这样的查找,所以这很可能是用户错误。 Usually I do a vlookup where it's finding one device result and not multiple results.通常我会做一个 vlookup,它会找到一个设备结果而不是多个结果。 When I googled it, it seemed to suggest filter, but I could be mistaken.当我用谷歌搜索它时,它似乎建议过滤,但我可能弄错了。 I haven't seen an example where the multiple results returned/found are put in the one row/column and not spilling to a second column like I want.我还没有看到将返回/找到的多个结果放在一行/列中而不像我想要的那样溢出到第二列的示例。 I'm not convinced filter and my formula is ultimately what I need.我不相信过滤器,我的公式最终是我需要的。 filter multiple 过滤多个

Something like the following should work:像下面这样的东西应该可以工作:

=LET(data,List_State_11.18.2021!J:J,filterlist,List_State_11.18.2021!A:A,lookup,A2,TRANSPOSE(FILTER(data,filterlist=lookup,"No Results")))

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

相关问题 Excel水平返回具有多个变量的INDEX结果 - Excel return INDEX results horizontally with multiple variables "Excel:在一个单元格中查找多个值并在另一个单元格中返回结果" - Excel: Lookup multiple values in one cell and return results in another 可以将此Google表格翻译成Excel吗? 查找多个结果 - Can this Google Sheet be translated in to Excel? Multiple results from lookup 具有多个条件和多个结果的Excel索引匹配-返回第一个结果 - Excel Index Match with multiple criteria and multiple results - Return first result Excel公式返回多个结果 - excel formula to return multiple results Excel 是否可以根据有多个匹配项的唯一键查找记录的数据,但根据条件仅返回一条记录? - Can Excel Lookup data for a record based on a unique key where there are multiple matches, but return only 1 record based on a condition? 等效于索引-在Excel中匹配以返回大于查找值的值 - Equivalent of index - match in Excel to return greater than the lookup value 具有结果的复杂Excel查找 - Complex Excel lookup with results Excel VBA 索引/查找 - Excel VBA Index/Lookup Excel-在最大值处匹配索引(返回多个结果并删除重复项) - Excel - Index Match where max value (return multiple results and remove duplicates)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM