12.4 Reference multi-column data from association table

 

Here below is a table that lists the freight charging standards:

imagepng

The following table stores the shipping order information:

imagepng

Now we want to calculate the actual freight based on the first table. To achieve this, write in cell D2:

A
1 =spl("=E(?1).select@1(City==?2)
2 =A1.First1KG+A1.Add1KG*(ceil(?3)-1)",Sheet1!A$1:C$9,B2,C2)

imagepng

Drag D2 down to every relevant row:

imagepng


https://c.scudata.com/article/1651916536524
https://c.scudata.com/article/1657467664753
https://c.scudata.com/article/1657506623897