Hello,
Thanks for reaching out. I'm Fritzie, an Independent Advisor. I'll be happy to help you out today.
Based on your screenshot, here's a link on how to get the value based on weight and distance. You need to use SUMPRODUCT function to match rows and columns.
https://exceljet.net/formula/sum-matching-colum...
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
Hope this helps.
Have a nice day !
Regards,
Fritz :)