I have the following two sheets in an Excel file:
Sheet "Missing_models": Column A contains the article number of a product. In the subsequent columns B to maximum H (can also only be only one entry, so only a value in B), there are designations for models to which the product belongs.
In the second sheet "Models", column A contains the id_m, column B contains the name, and column C contains the color. The combination of name and color, i.e., columns B and C, separated by a space, exactly matches the model designations in columns B to H in "Missing_models".
Now, in a new sheet, I want to have the article number in column A and the corresponding id_m in column B, where the mapping between columns B-H of "Missing_models" and the concatenation of columns B and C from "Models" should take place.
So for example in missing_models i have the following entry:
A | B | C |
---|---|---|
123 | model green | model red |
456 | model blue |
In models there are the entries:
A | B | C |
---|---|---|
1 | model | green |
2 | model | blue |
3 | model | red |
From that i would like to have a new sheet like this:
A(articelnumber) | B (id_m) |
---|---|
123 | 1 |
123 | 3 |
456 | 2 |
How can I achieve this?