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 i.e. not working with ARRAYFORMULA:
=ArrayFormula(if(isblank(D1),"",IFERROR(ArrayFormula(LOOKUP(2,1/(A:A=D1),B:B)))))
Below is the link for the sample sheet:
Any help on above will be greatly appreciated.
Regards
=ARRAYFORMULA (IF (D:D<>"", VLOOKUP (D:D, sort({A:A, row(A:A)}, 2,false), 2,false ), ))
– Sergey