I have two tables, for example:
Table 1
Product Identifier Customer 1 Customer 2 Customer 3 Customer 4
12345
12346
12347
12348
…
Table 2
Product Identifier Price File 1/GBP Price File 2/GBP-10% Price File 3/EUR
12345 50 45 60
12346 17 15.3 20.4
12347 100 90 120
12348 35 31.5 42
…
I would like to fill in table 1 with price values from table 2 depending on which price file a customer uses.
Eg. Customers 1 and 3 use price file 1, customer 2 uses price file 2 and customer 4 uses price file 3.
So my result would be this:
Product Identifier Customer 1 Customer 2 Customer 3 Customer 4
12345 50 45 50 60
12346 17 15.3 17 20.4
12347 100 90 100 120
12348 35 31.5 35 42
…
At some point new customers will be added and the price file that a customer uses may change.
What is the best way to fill in table 1?