I have a table such as
+---------+---------+--------+--------+--------+
| Product | Classif | Type 1 | Type 2 | Type 3 |
+---------+---------+--------+--------+--------+
| a | Type 1 | 2 | 6 | 8 |
| b | Type 2 | 3 | 9 | 11 |
| c | Type 3 | 5 | 10 | 15 |
+---------+---------+--------+--------+--------+
Where I have a list of products and the classification they have. The matching between a product and a classification is enough to determine their price (which is in columns 3 to 5). I would like a new column that shows the price of each product according to its type, such as:
+---------+---------+--------+--------+--------+-------+
| Product | Classif | Type 1 | Type 2 | Type 3 | Price |
+---------+---------+--------+--------+--------+-------+
| a | Type 1 | 2 | 6 | 8 | 2 |
| b | Type 2 | 3 | 9 | 11 | 9 |
| c | Type 3 | 5 | 10 | 15 | 15 |
+---------+---------+--------+--------+--------+-------+
Where the program compares the value of the column classif, and takes the value from the corresponding column.