Home > Software design >  How to sum results obtained with VLOOKUP and IMPORTRANGE in Google Sheets?
How to sum results obtained with VLOOKUP and IMPORTRANGE in Google Sheets?

Time:05-19

I'm currently obtaining the result with the formula below, which was nicely provided by player0, but the challenge now is to obtain not only the figure found, but a sum, since the occurrences in the "database" may be multiple.

=Arrayformula(if(A9:A="";;IFNA(vlookup(A9:A&D9:D&"Expedição"&"Costura";
{IMPORTRANGE("fileId";"Produção!F2:F")&
IMPORTRANGE("fileId-1n3nQ";"Produção!H2:H")&
IMPORTRANGE("fileId-1n3nQ";"Produção!R2:R")&
IMPORTRANGE("fileId-1n3nQ";"Produção!B2:B")\
IMPORTRANGE("fileId-1n3nQ";"Produção!N2:N")};2;0))))

I have tried including sum in many places in the formula above, but with no success.

Here's a enter image description here

  • Related