Correlation between two columns, ignoring errors

lisannnestolte

New Member
Joined
May 7, 2019
Messages
1
Hi all,

I want to check the correlation between two columns (column B and I), taking out all the values that give an error. Furthermore if a certain nth value in column B (I) gives an error, the corresponding nth value in column I (B) should also be ignored. I did it this way but it gaves a #VALUE error.


This is the formula I used:
=CORREL(IF(ISERROR(B2:B300);"";IF(ISERROR(I2:I300);"";B2:B300));IF(ISERROR(I2:I300);"";IF(ISERROR(B2:B300);"";I2:I300)))

so basically it should be CORREL(B2:B300; I2:I300) but then ignoring all the error values and corresponding values in the other column.

Any help would be appreciated :)

Thanks in advance.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
One way:


Excel 2010
ABCDEFGHI
1Series1Series2Series1aSeries2a
2#DIV/0!#DIV/0!0.01791847200.017918
347204767
420#DIV/0!39100
547677791
639100258
777911132
82584852
996#DIV/0!7222
1011324923
1148521837
12#DIV/0!#DIV/0!27
137222680
1449232219
1518379727
16#DIV/0!661358
1727
18680
192219
209727
21#DIV/0!86
221358
2346#DIV/0!
2486#DIV/0!
Sheet1
Cell Formulas
RangeFormula
I2=CORREL(F2:F16,G2:G16)
D2{=CORREL(IF(ISNUMBER($A$2:$A$24+$B$2:$B$24),$A$2:$A$24),IF(ISNUMBER($A$2:$A$24+$B$2:$B$24),$B$2:$B$24))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,938
Messages
6,122,346
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top