I have data similar to the following in Excel:
A B
1 1,287.90 221,300
2 0 0
3 1,828.93 64,080
4 417.81 0
5 397.37 76,529
6 1,371.69 0
7 1,316.81 50,761
8 1,828.93 28,645
I want to calculate the correlation coefficient of these two arrays where there are non-zeros. I want to do this without copying the data to a separate sheet with the zeros removed. I have tried this for example:
CORREL({A1,A3,A5, A7:A8}, {B1,B3,B5, B7:B8}) but this does not work. Any ideas