libreoffice calc 如果 2 列包含匹配则显示第三列
列包括 ID_AllOrders、Date_AllOrders 和 ID_CertainOrders。
我需要为 Date_Certain 订单创建第四列,方法是获取与 ID_AllOrders 中的行匹配的每个 ID_CertainOrders 的 Date_AllOrders。
我正在使用 libreoffice calc 并一直在尝试 INDEX + MATCH 的教程,但到目前为止只出现错误。
对于 INDEX,我使用 ID_AllOrders 列,对于 MATCH,我使用 ID_CertainOrders 列并在所有列的数组中查找。
=INDEX($D$2:$D$17143, MATCH(F2,$A$2:$D$17143))
INDEX + MATCH 是我需要的吗?
如果日期列是像 2022-03-06 10:47:17 -0500 这样的时间戳,这有关系吗?
Columns are ID_AllOrders, Date_AllOrders, and ID_CertainOrders.
I need a 4th column for Date_Certain orders by grabbing the Date_AllOrders for each ID_CertainOrders that matches a row in ID_AllOrders.
I'm using libreoffice calc and been trying tutorials for for INDEX + MATCH but only getting errors so far.
For INDEX I'm using the ID_AllOrders column and for MATCH I'm using the ID_CertainOrders column and looking in the array of all columns.
=INDEX($D$2:$D$17143, MATCH(F2,$A$2:$D$17143))
Is INDEX + MATCH what I need?
Does it matter if the Date column is a timestamp like 2022-03-06 10:47:17 -0500?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我无法通过 INDEX + MATCH 获得所需的内容。如果有的话,我很想看看。
但是,我确实使用 VLOOKUP 找到了解决方案...
F2 是我想要查找的特定 ID 列中的顶部单元格。范围是所有行和列,包括 AllID 和 DATES。 “4”表示 AllDates 列是“D”,“0”表示我希望 AllId 和 certainID 完全匹配。
I was not able to get what I needed with INDEX + MATCH. If there is one, I'd love to see it.
However, I did find a solution using VLOOKUP...
F2 is the top cell in the column of CertainIDs I want to find. The range is all the rows and columns including AllIDs and DATES. The "4" means the AllDates column is "D" and the "0" means I want the AllId and the CertainID to be an exact match.