Hello!
I am trying to find the correlation between two columns of data, however, there is a row of zeros between each row of meaningful data. Here's a screenshot for reference:
kU6mQAF.png
I am trying to find the correlation of columns N and O while omitting each row in which both values are zero.
I tried using =CORREL(IF(AND(N2:N172>0,O2:O172>0),N2:N172),IF(AND(O2:O172>0,N2:N172>0),O2:O172)), but it returns the same value as does =CORREL(N2:N172,O2:O172), indicating that rows are not being omitted as intended.
Could anyone clue me in on how to do this correctly? Thanks!
Bookmarks