简体   繁体   English

Excel查找在多列中未排序的两个数字之间

[英]Excel lookup between a range of two numbers unsorted in multiple columns

I am trying to search for a number that has multiple ranges of unsorted numbers and return the name of the corresponding number. 我正在尝试搜索具有多个未排序数字范围的数字,并返回相应数字的名称。

I'm thinking something like this =LOOKUP(2,1/($B$2:$B$15<=E2)/($C$2:$C$15>=E2),$A$2:$A$15) 我在想这样的东西= LOOKUP(2,1 /($ B $ 2:$ B $ 15 <= E2)/($ C $ 2:$ C $ 15> = E2),$ A $ 2:$ A $ 15)

However this will not working with multiple columns and unsorted date. 但是,这不适用于多个列和未排序的日期。

Any help would be greatly appreciated. 任何帮助将不胜感激。

Example below: 下面的例子:

       | Start1 |  End1  | Start2 |  End2  |
Name 1 |   104  |   191  |   306  |   307  |
Name 2 |    15  |    21  |    23  |    60  |
Name 3 |   330  |   339  |   405  |   490  |

Input 32 would expect Output Name 2 输入32将期望输出Name 2

照片示例。

Try INDEX and return the row number with AGGREGATE. 尝试INDEX并使用AGGREGATE返回行号。

=index($C$2:$C$15, aggregate(15, 7, row($1:$14)/(($A$2:$A$15<=E2)*($B$2:$B$15>=E2)), row(1:1)))

That's the closest I can offer with no sample data. 这是我可以提供的最接近的示例数据。 Fill down for additional matches. 填写其他比赛。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM