简体   繁体   English

使用 Arrayformula 查找 Google 表格

[英]Google Sheet Lookup With Arrayformula

I am using below formula to lookup the last value of the matching string.我正在使用下面的公式来查找匹配字符串的最后一个值。 The formula is working fine but is giving result for only one cell ie not working with ARRAYFORMULA:该公式工作正常,但只给出一个单元格的结果,即不使用 ARRAYFORMULA:

=ArrayFormula(if(isblank(D1),"",IFERROR(ArrayFormula(LOOKUP(2,1/(A:A=D1),B:B))))) =ArrayFormula(if(isblank(D1),"",IFERROR(ArrayFormula(LOOKUP(2,1/(A:A=D1),B:B)))))

Below is the link for the sample sheet:以下是样品表的链接:

https://docs.google.com/spreadsheets/d/1pcW0BUDEG7OGc1oh2b_4bTtZ2pB-hSmGCoTj5wnkYNo/edit#gid=2002876038 https://docs.google.com/spreadsheets/d/1pcW0BUDEG7OGc1oh2b_4bTtZ2pB-hSmGCoTj5wnkYNo/edit#gid=2002876038

Any help on above will be greatly appreciated.上述任何帮助将不胜感激。

Regards问候

use:利用:

=ARRAY_CONSTRAIN(SORTN(SORT({A:B, ROW(A:A)}, 3, ), 9^9, 2, 1, 1), 9^9, 2)

在此处输入图像描述

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

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