如果查找值位于表数组右侧的列中,则 VLookup
我设置了一个电子表格,它已经包含大量数据。 A 列保存日期对象,B 列保存数值。我想使用Vlookup查找数值并返回相应的日期值。问题在于 Vlookup 在表数组的最左边的列中进行搜索,这是一个问题,因为该列保存日期。如果我要查找日期,这很容易做到,但是如何才能查找数值呢?我知道交换日期和数字列就可以做到这一点,但我正在寻找一种解决方案,使我能够保持电子表格结构完整。
I have a spreadsheet set up, and it already contains a lot of data. The A column holds date objects and column B holds numerical values. I want to use Vlookup to find the numerical value and to return the corresponding date value. The problem is that Vlookup searches in the leftmost column of the table array, which is a problem since the column holds dates. This would be easy to do if I was looking up dates, but how can I do it for looking up the numerical value. I understand that swapping the date and numerical column would do it, but I'm looking for a solution that allows me to keep the structure of my spreadsheet intact.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
示例
这将为您提供
10/02/2011
。这些是意大利语函数名称。
对应的英语分别是
INDEX
和MATCH
。编辑。在用户提出问题后更新。
假设您的日期在 a2:a7 范围内,其值在 b2:b7 内,并且您正在查找值为 5 的最近日期:
您必须使用数组公式,因此输入后需要按
ctrl+shift+enter
。Example
This gives you
10/02/2011
.These are Italian function names.
English equivalents are
INDEX
andMATCH
, respectively.edit. Update after user's question.
Let' suppose that your dates are in the range a2:a7 and its values on b2:b7 and that you're looking for the most recent date that has a value of 5:
you have to use array formula, so you need to press
ctrl+shift+enter
once you've typed the it.