Hi
I'm trying convert a variable list of strings within a table column into corresponding codes - a kind of Index Match within each cell, in which the values are separated with a delimiter (comma).
What's the best way to get the output in column F below? (I'm limited to Excel 2010 functions, and the tables are on different sheets, so I'm hoping to use structured references).
I'm trying convert a variable list of strings within a table column into corresponding codes - a kind of Index Match within each cell, in which the values are separated with a delimiter (comma).
What's the best way to get the output in column F below? (I'm limited to Excel 2010 functions, and the tables are on different sheets, so I'm hoping to use structured references).
Scratch Book2.xlsx | |||||||
---|---|---|---|---|---|---|---|
B | C | D | E | F | |||
3 | tbl_Lookup | tbl_Convert | |||||
4 | |||||||
5 | Strings | Code | Input | Output | |||
6 | Some text 1 | F | Some text 1, Some text 5, Some text 13, Some text 16 | F, B, E, Q | |||
7 | Some text 2 | G | Some text 2, Some text 6 | G, F | |||
8 | Some text 3 | M | Some text 3 | M | |||
9 | Some text 4 | N | Some text 4, Some text 13, Some text 1 | N, E, F | |||
10 | Some text 5 | B | |||||
11 | Some text 6 | F | |||||
12 | Some text 7 | J | |||||
13 | Some text 8 | S | |||||
14 | Some text 9 | L | |||||
15 | Some text 10 | C | |||||
16 | Some text 11 | I | |||||
17 | Some text 12 | O | |||||
18 | Some text 13 | E | |||||
19 | Some text 14 | D | |||||
20 | Some text 15 | P | |||||
21 | Some text 16 | Q | |||||
22 | Some text 17 | H | |||||
23 | Some text 18 | R | |||||
24 | Some text 19 | H | |||||
25 | Some text 20 | J | |||||
26 | Some text 21 | K | |||||
27 | Some text 22 | 999 | |||||
28 | Some text 23 | G | |||||
29 | Some text 24 | A | |||||
30 | Some text 25 | 888 | |||||
Sheet3 |