Hello Everyone,
I need to generate an invoice (new table) extracting data from tables 1&2 below. The input values are: Product #, Quantity and Destination.
The ouput parameters are: price per kg , discount per kg, shipping per kg, total price.
I'm trying to use vlookup function but the challenge is the product column contains the same products.
<tbody>
</tbody>
I need to generate an invoice (new table) extracting data from tables 1&2 below. The input values are: Product #, Quantity and Destination.
The ouput parameters are: price per kg , discount per kg, shipping per kg, total price.
I'm trying to use vlookup function but the challenge is the product column contains the same products.
Table 1. Product pricing | |||||||
Product # | SAP ID | Product | Ship Qty | Price | Discount | Ex-works price USD/kg | |
111 | 1000000 | A1 | <100kg | $100.00 | $5.00 | $95 | |
111 | 1000000 | A1 | 100 -500kg | $80.00 | $5.00 | $75 | |
111 | 1000000 | A1 | >500 kg | $70.00 | $5.00 | $65 | |
121 | 1000001 | B2 | <100kg | $56 | $7.00 | $49 | |
121 | 1000001 | B2 | 100 -500kg | $54 | $7.00 | $47 | |
121 | 1000001 | B2 | >500 kg | $51 | $7.00 | $44 | |
Table 2 Shipping Cost | |||||||
City | Cost, $/kg | ||||||
NYC | 5 | ||||||
Toronto | 3 | ||||||
Seatle | 4 | ||||||
Invoice | |||||||
Product# Quantity Destination Price Shipping Total price | |||||||
121 50 NYC 56.36 5 3058 |
<tbody>
</tbody>