libreoffice calc 如果 2 列包含匹配则显示第三列

发布于 2025-01-12 14:00:58 字数 459 浏览 4 评论 0原文

列包括 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撞了怀 2025-01-19 14:00:58

我无法通过 INDEX + MATCH 获得所需的内容。如果有的话,我很想看看。

但是,我确实使用 VLOOKUP 找到了解决方案...

=VLOOKUP(F2,$A$2:$D$17143,4,0)

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...

=VLOOKUP(F2,$A$2:$D$17143,4,0)

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文