I have the following problem with VBA:
I have a list of names of persons with a rank (either "1" or "2", see below) and I want to search their number of occurrences in another table and add up the ranks.
Person Data:
<tbody>
</tbody>
Company Data:
<tbody>
</tbody>
Thanks a lot for your help.
I have a list of names of persons with a rank (either "1" or "2", see below) and I want to search their number of occurrences in another table and add up the ranks.
Person Data:
Person | Rank |
A | 1 |
B | 2 |
K | 2 |
P | 1 |
U | 2 |
T | 1 |
... | ... |
<tbody>
</tbody>
Company Data:
- red is what needs to be written in Col "Combined Rank")
- In my Company Data, the names of the persons data are sometimes followed by random brackets and/or spaces and then brackets
Company | Persons | Combined Rank |
C1 | A(), B (..) | 3 [= Rank(A)+Rank(B)=1 + 2] |
C2 | K | 2 |
C3 | K [--], P, A, T | 5 [=2 + 1 + 1 + 1] |
C4 | Q | 0 |
C5 | - | 0 |
C6 | A, U{ff} | 3 [=1 + 2] |
... | ... |
<tbody>
</tbody>
Thanks a lot for your help.