bapswarrior
New Member
Hi Guys, Really need help, i was given this question for my interview and it has haunted me ever since.
Question is to compute beta i.e slope, i.e covariance/variance. But that is not the problem. This issue is as follows.
I have 2 columns which has data. The data is monthly. Some months have data, some have blanks/zero. I would like a formula that would automaticall pick up the previous 12 NUMBERS (skipping blanks). So my forumla should be =covs(this is where i want the magic to happen)/vars(this is where i want the magic to happen). I have a coloumn in which the numbers are all positvie and a different one where numbers are all negative. Below is a sample, what i would like is the formula to pick up last 12 number so that would be 1 through 13 formula 2 would be 2-14 and so on.
A B
1 1
2 2
3 3
4 4
6 6
7 7
8 8
9 9
10 10
11 11
12 12
13 13
14 14 FORMULA
FORMULA
Any help on this would be a job save
Thanks.
Question is to compute beta i.e slope, i.e covariance/variance. But that is not the problem. This issue is as follows.
I have 2 columns which has data. The data is monthly. Some months have data, some have blanks/zero. I would like a formula that would automaticall pick up the previous 12 NUMBERS (skipping blanks). So my forumla should be =covs(this is where i want the magic to happen)/vars(this is where i want the magic to happen). I have a coloumn in which the numbers are all positvie and a different one where numbers are all negative. Below is a sample, what i would like is the formula to pick up last 12 number so that would be 1 through 13 formula 2 would be 2-14 and so on.
A B
1 1
2 2
3 3
4 4
6 6
7 7
8 8
9 9
10 10
11 11
12 12
13 13
14 14 FORMULA
FORMULA
Any help on this would be a job save
Thanks.