匹配两列并提取 google 工作表中的最后一个值
Match two column and pull the last value in google sheets
在此示例中,我尝试提取最后一个付款日。
我尝试了 vlook 和这个 但我没有物品。
date Action Payment Last payment date
08.01.2022 Payment 100
09.01.2022 other action
10.01.2022 other action
11.01.2022 other action
12.01.2022 other action
13.01.2022 other action
14.01.2022 other action
15.01.2022 Payment 107
16.01.2022 Payment 108
17.01.2022 Payment 109
18.01.2022 other action
19.01.2022 other action
20.01.2022 other action
21.01.2022 other action
22.01.2022 Payment 114
给定以下数据:
使用query
公式获取最后付款日期:
=query(A2:B, "select A where B = 'Payment' order by A desc limit 1")
输出:
在此示例中,我尝试提取最后一个付款日。
我尝试了 vlook 和这个
date Action Payment Last payment date
08.01.2022 Payment 100
09.01.2022 other action
10.01.2022 other action
11.01.2022 other action
12.01.2022 other action
13.01.2022 other action
14.01.2022 other action
15.01.2022 Payment 107
16.01.2022 Payment 108
17.01.2022 Payment 109
18.01.2022 other action
19.01.2022 other action
20.01.2022 other action
21.01.2022 other action
22.01.2022 Payment 114
给定以下数据:
使用query
公式获取最后付款日期:
=query(A2:B, "select A where B = 'Payment' order by A desc limit 1")
输出: