I want to get the total productivity of the employee according to the selected SPV in 1 cell, with multiple search key (array). I tried the "xlookup" formula, but it only shows the 1st array, whereas there are a lot productivity from the employee.
This is the formula, which only shows the 1st array.
ARRAYFORMULA(XLOOKUP(FILTER(A3:A9,B3:B9=E3),A13:A48,B13:B48))
You may try:
=sum(ifna(filter(B13:B,xmatch(A13:A,filter(A3:A9,B3:B9=E3)))))
OR
=sumif(index(xmatch(A13:A48,filter(A3:A9,B3:B9=E3))^0),1,B13:B)