Hello,
I'm stuck and I hope you guys can help me with this simple problem.
I'm trying to get the market returns (A) to sum over the days where the stock returns (B) is not available. I have tried with if and lookup function but I can't get it right.
I have copied a small section of the issue.
Best regards
/T
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 256"]
<tbody>[TR]
[TD="width: 64"]Market[/TD]
[TD="class: xl67, width: 64"]Stock[/TD]
[TD="width: 64"]Result[/TD]
[TD="class: xl67, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]-0,82%[/TD]
[TD="class: xl68, align: right"]-1,49%[/TD]
[TD="class: xl66, align: right"]-0,82%[/TD]
[TD="class: xl67"]A2[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]1,22%[/TD]
[TD="class: xl68, align: right"]-0,77%[/TD]
[TD="class: xl66, align: right"]1,22%[/TD]
[TD="class: xl67"]A3[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]1,25%[/TD]
[TD="class: xl68, align: right"]-0,27%[/TD]
[TD="class: xl66, align: right"]1,25%[/TD]
[TD="class: xl67"]..[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]-0,99%[/TD]
[TD="class: xl68, align: right"]0,78%[/TD]
[TD="class: xl66, align: right"]-0,99%[/TD]
[TD="class: xl67"]..[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]-0,83%[/TD]
[TD="class: xl68"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl67"]..[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]-1,14%[/TD]
[TD="class: xl68"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl67"]..[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]-0,91%[/TD]
[TD="class: xl68, align: right"]1,01%[/TD]
[TD="class: xl66, align: right"]-2,89%[/TD]
[TD="class: xl67"]SUM(A6:A8)[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]0,01%[/TD]
[TD="class: xl68, align: right"]-2,27%[/TD]
[TD="class: xl66, align: right"]0,01%[/TD]
[TD="class: xl67"]A9[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]0,14%[/TD]
[TD="class: xl68"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl67"]..[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]0,31%[/TD]
[TD="class: xl68, align: right"]0,27%[/TD]
[TD="class: xl66, align: right"]0,46%[/TD]
[TD="class: xl67"]SUM(A10:A11)[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]0,06%[/TD]
[TD="class: xl68, align: right"]2,58%[/TD]
[TD="class: xl65, align: right"]2,58%[/TD]
[TD="class: xl67"]A12[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
I'm stuck and I hope you guys can help me with this simple problem.
I'm trying to get the market returns (A) to sum over the days where the stock returns (B) is not available. I have tried with if and lookup function but I can't get it right.
I have copied a small section of the issue.
Best regards
/T
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 256"]
<tbody>[TR]
[TD="width: 64"]Market[/TD]
[TD="class: xl67, width: 64"]Stock[/TD]
[TD="width: 64"]Result[/TD]
[TD="class: xl67, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]-0,82%[/TD]
[TD="class: xl68, align: right"]-1,49%[/TD]
[TD="class: xl66, align: right"]-0,82%[/TD]
[TD="class: xl67"]A2[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]1,22%[/TD]
[TD="class: xl68, align: right"]-0,77%[/TD]
[TD="class: xl66, align: right"]1,22%[/TD]
[TD="class: xl67"]A3[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]1,25%[/TD]
[TD="class: xl68, align: right"]-0,27%[/TD]
[TD="class: xl66, align: right"]1,25%[/TD]
[TD="class: xl67"]..[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]-0,99%[/TD]
[TD="class: xl68, align: right"]0,78%[/TD]
[TD="class: xl66, align: right"]-0,99%[/TD]
[TD="class: xl67"]..[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]-0,83%[/TD]
[TD="class: xl68"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl67"]..[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]-1,14%[/TD]
[TD="class: xl68"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl67"]..[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]-0,91%[/TD]
[TD="class: xl68, align: right"]1,01%[/TD]
[TD="class: xl66, align: right"]-2,89%[/TD]
[TD="class: xl67"]SUM(A6:A8)[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]0,01%[/TD]
[TD="class: xl68, align: right"]-2,27%[/TD]
[TD="class: xl66, align: right"]0,01%[/TD]
[TD="class: xl67"]A9[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]0,14%[/TD]
[TD="class: xl68"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl67"]..[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]0,31%[/TD]
[TD="class: xl68, align: right"]0,27%[/TD]
[TD="class: xl66, align: right"]0,46%[/TD]
[TD="class: xl67"]SUM(A10:A11)[/TD]
[/TR]
[TR]
[TD="class: xl66, align: right"]0,06%[/TD]
[TD="class: xl68, align: right"]2,58%[/TD]
[TD="class: xl65, align: right"]2,58%[/TD]
[TD="class: xl67"]A12[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]