I have a data set that looks like this:
A B C D E F
P 2 0 2 0 0 3
Q 0 3 1 1 1 0
R 6 0 0 0 1 0
S 0 5 0 3 0 0
T 0 0 5 0 0 2
U 0 0 7 0 0 0
I need to be able to search that table by putting selecting an input value from P-Q then if that selected row has a value greater than 0.
I need it to return any other rows that also have a non-zero value in that column, how many of the columns share a non-zero value and which ones they are.
So for example:
Value:
P
Result :
Q - 1 - C
R - 1 - A
T - 2 - C, F
(another way of thinking would be P shares 1 similar column with Q which is C, 1 similar column with R which is A and 2 similar columns with T which are C and F)
Value:
R
Result :
P - 1 - A
Q - 1 - E
Value:
S
Result:
Q - 2 - B, D
Ideally these three results would be in separate cells if possible. So the result for the last value, S, would look like | Q | 2 | B, D |
If I can get that going, that would be most amazing. I thought a pivot table might be the way, but its not really going at all.
Many many many thanks in advance!
A B C D E F
P 2 0 2 0 0 3
Q 0 3 1 1 1 0
R 6 0 0 0 1 0
S 0 5 0 3 0 0
T 0 0 5 0 0 2
U 0 0 7 0 0 0
I need to be able to search that table by putting selecting an input value from P-Q then if that selected row has a value greater than 0.
I need it to return any other rows that also have a non-zero value in that column, how many of the columns share a non-zero value and which ones they are.
So for example:
Value:
P
Result :
Q - 1 - C
R - 1 - A
T - 2 - C, F
(another way of thinking would be P shares 1 similar column with Q which is C, 1 similar column with R which is A and 2 similar columns with T which are C and F)
Value:
R
Result :
P - 1 - A
Q - 1 - E
Value:
S
Result:
Q - 2 - B, D
Ideally these three results would be in separate cells if possible. So the result for the last value, S, would look like | Q | 2 | B, D |
If I can get that going, that would be most amazing. I thought a pivot table might be the way, but its not really going at all.
Many many many thanks in advance!