I have the following Google Spreadsheet data:
Name1 Name2 Name3 Value
A B C 20
B A C 30
C D F 40
What I'm trying to do is see if any name appears in any of the three columns of the name. If so, then sum all the values in the Value column for all matching rows.
For example, I want to summarize all the values for the name "A". This name appears only in the first two lines, so I need to do 20 + 30 to give me 50. If I change the name to "C", it will appear in all three lines, so it should sum all the numbers: 20+ 30 + 40. The algorithm must correctly configure and perform the search.
I could not understand this, so I hope for help.
source
share