I’ve created a large-ish matrix by doing a =pearson( analysis on survey responses in google docs/spreadsheets and would like to convert it into a sorted list.
The matrix has labels (the survey questions) in row 2 and column b. Each intersecting cell has the value. Here’s what the formula looks like.
=pearson(FILTER( Pc!$C$2:$AW$999 ; Pc!$C$2:$AW$2= C$2 ),FILTER(Pc!$C$2:$AW$999 ;Pc!$C$2:$AW$2=$B3))
This is what I’d like to get to:
a b c
Question one question 2 correlation
Then sorting by column c is easy.
How can I get all the points out of the matrix/array, along with the labels in this way?
Ideally I’d be able to do this only to points below the diagonal as there of course are dupes above..
Thanks!
I think I found a solution to placing the combination of the headers in a single column.
It involves a series of auxiliary columns, but works.
Let’s say we have a single column with all unique headers on column
A. I’ll assume it’s 6 values. So, on cellB1we paste:And then copy it down to
B5. OnC1we join it all and split making a single column:If needed, we can split the combination in two columns again on
D1I don’t know why, but the value on
E1does not work correctly, so I just pasted=A2With these columns you can easily do your nice
Pearson-Filtertrick again to have it all in a single column. Hope this helps 🙂