My data source is in Excel and it contains responses to a list of questions, many of which involve selecting multiple values from a list of values. In the Excel output, these multiple responses are recorded in a single cell as a concatenated, comma separated list. Each value has a weighted score and I need to calculate the total score for all the selected responses, ideally by looking up the score from a table. See example below:
Desired result = Total score column shown in first table. The lookup table for the scores for each 'fruit value' is set out below that. Is there any way to do this in a fairly easy way?
Fruit | Total score |
Apple, Lemon, Pear, Orange | 21 |
Lemon, Pear | 6 |
Apple | 10 |
Orange | 5 |
Lookup table | Score |
Apple | 10 |
Lemon | 4 |
Pear | 2 |
Orange | 5 |