correlation between 2 dates

tmmellor1981

Board Regular
Joined
Jan 18, 2009
Messages
122
Morning All

I'm trying to use the correlation formula but am unable to get it to work between a date range, this is what I currently have:

=CORREL(Account_Opened!$P:$P,Account_Opened!$AV:$AV)

There is a from date in A1 on the current sheet and a too date in D1

I'm sure this can be done but not been able to figure it out of find a post about this

many thanks
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
If you wrap your formula in "code" tags (the hash symbol in the editor menu), then it should display correctly.

Regards
 
Upvote 0
code tags cut it off too, full text is on that link though

Code:
=if(account_opened!b:b greater than or equal to a1&if(account_opened!b:b less than d1),correl(account_opened!p:p,account_opened!av:av)

appears it doesnt like the greater or less than symbols
 
Upvote 0
Try this array formula**:

=CORREL(IF(Sheet2!A1<=account_opened!B1:B10,IF(Sheet2!D1>account_opened!B1:B10,account_opened!P1:P10)),account_opened!AV1:AV10)<sheet2!d1,account_opened!p1:p10)),account_opened!av1:av10)< font=""><sheet2!d1,account_opened!p1:p10)),account_opened!av1:av10)< font="">

</sheet2!d1,account_opened!p1:p10)),account_opened!av1:av10)<>
</sheet2!d1,account_opened!p1:p10)),account_opened!av1:av10)<>
<sheet2!d1,account_opened!p1:p10)),account_opened!av1:av10)< font=""><sheet2!d1,account_opened!p1:p10)),account_opened!av1:av10)< font="">Note that you can amend the upper row being referenced (10 here) to meet your requirements, though you should be careful not to make it too arbitrarily large (and certainly don't reference entire columns!), since, for each additional cell referenced, extra calculation will be required.

And that applies whether those additional cells are technically beyond the last-used cells in those ranges or not. With some functions, e.g. COUNTIF(S)/SUMIF(S), you can get away with referencing entire columns with no detriment to performance, though not with functions which operate over arrays, such as AGGREGATE, SUMPRODUCT, and any construction requiring CSE.

Regards


**Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).</sheet2!d1,account_opened!p1:p10)),account_opened!av1:av10)<></sheet2!d1,account_opened!p1:p10)),account_opened!av1:av10)<><sheet2!d1,account_opened!p1:p10)),account_opened!av1:av10)< font=""><sheet2!d1,account_opened!p1:p10)),account_opened!av1:av10)< font=""></sheet2!d1,account_opened!p1:p10)),account_opened!av1:av10)<></sheet2!d1,account_opened!p1:p10)),account_opened!av1:av10)<>
 
Upvote 0

Forum statistics

Threads
1,214,913
Messages
6,122,207
Members
449,074
Latest member
cancansova

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