I am trying to figure out a way to do dynamic correlation between variables by choosing start and end date, (Vertical Column A), and doing correlation between 2 different columns of values. The kicker is there is also a column of identifiers in Column B. So i'd like to select correlation between the identifiers in column B vs another item in column B, using the start and end dates in column A, but selecting values in C and D or C and E of C and F...ETC
I've figured out how to do this without the identifiers by using but this is missing the identifier selection.
(=CORREL(INDEX(A1:F12,MATCH(J2,A1:A12,0),MATCH(K2,A1:F1,0)):INDEX(A1:F12,MATCH(J3,A1:A12,0),MATCH(K2,A1:F1,0)),INDEX(A1:F12,MATCH(J2,A1:A12,0),MATCH(K3,A1:F1,0)):INDEX(A1:F12,MATCH(J3,A1:A12,0),MATCH(K3,A1:F1,0)))
Unfortunately the program I use gives data in this way. Id like to see the correlation between A and C, for dates 2015-2016, and values 1 and 3 for instance. I realize there has to be an easier way to do this. I've only used pivots briefly but realize there may be some utility there.
<tbody>
</tbody>
I've figured out how to do this without the identifiers by using but this is missing the identifier selection.
(=CORREL(INDEX(A1:F12,MATCH(J2,A1:A12,0),MATCH(K2,A1:F1,0)):INDEX(A1:F12,MATCH(J3,A1:A12,0),MATCH(K2,A1:F1,0)),INDEX(A1:F12,MATCH(J2,A1:A12,0),MATCH(K3,A1:F1,0)):INDEX(A1:F12,MATCH(J3,A1:A12,0),MATCH(K3,A1:F1,0)))
Unfortunately the program I use gives data in this way. Id like to see the correlation between A and C, for dates 2015-2016, and values 1 and 3 for instance. I realize there has to be an easier way to do this. I've only used pivots briefly but realize there may be some utility there.
Date | Identifier | Value 1 | Value 2 | Value 3 |
12/31/15 | A | 1 | 3 | 2 |
12/31/16 | B | 5 | 2 | 3 |
12/31/17 | C | 4 | 2 | 4 |
12/31/15 | A | 3 | 3 | 1 |
12/31/16 | B | 3 | 2 | 3 |
12/31/17 | C | 1 | 3 | 1 |
<tbody>
</tbody>