Index Match beat Vlookup的场景

来源:互联网 发布:萧山网络问政发帖区 编辑:程序博客网 时间:2024/06/13 12:55

有一批不同的投资组合,每个投资组合各自有时间序列,要求对每个投资组合每期,求一个标准差。



=IF(A4=A2,C3+STDEV(INDEX(Sheet1!C:C,MATCH(Sheet1!A4,Sheet1!A:A,0)):C3)*2.5,"")

所以除了refer table里面,refer column后于retrieve column这种用index match可行vlookup会翘掉。

另外,划重点,index match返回的是地址。vlookup返回地址承载的值。所以vlookup这次不行。

用Evaluate看看就知道了。