CORREL w/ condition

H

heidi

I'm trying to use CORREL of 2 columns of data which is based on a conditon of
another column of data. Something like -

IF($a$1:$a$100=1,CORREL($b$1:$b$100,$c$1:$c$100))

Thanks in advance!
Heidi
 
L

libby

If you want to correlate if each cell in column A is equal to 1, you'd use:

=IF(COUNTIF($A$1:$A$100,"=1")=COUNT($A$1:$A$100),CORREL($B$1:$B$100,$C$1:$C$100),"")

If there is a cell in column A that is not equal to 1, the above statement
returns an empty cell.

Hope that helped!
 
M

Max

Think you could try it like this, array entered, ie press CTRL+SHIFT+ENTER to
confirm the formula (instead of just pressing ENTER):
=CORREL(IF(A1:A100=1,B1:B100),IF(A1:A100=1,C1:C100))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top