简短简单,如何将此公式重写为数组公式变量?谢谢
=iferror(if(and(GOOGLEFINANCE(B2, "High")>=D2+Now()-Now(), GOOGLEFINANCE(B2,"Low")<=D2),"Filled",if(F2<0.005, "In Threshold",if(and(E2="Long", GOOGLEFINANCE(B2,"priceOpen")<D2),"JumpedG ap",if(and(E2="Short",GOOGLEFINANCE(B2,"priceOpen")>D2),"Jumped Gap","Active")))))
答案 0 :(得分:0)
如果适合您,请尝试以下方法:
=ARRAYFORMULA(IFERROR(
IF((GOOGLEFINANCE(B2:B, "High")>=D2+NOW()-NOW()) * (GOOGLEFINANCE(B2:B, "Low")<=D2), "Filled",
IF(F2:F<0.005, "In Threshold",
IF((E2:E="Long") * (GOOGLEFINANCE(B2:B, "priceOpen")<D2), "JumpedG ap",
IF((E2:E="Short") * (GOOGLEFINANCE(B2:B, "priceOpen")>D2), "Jumped Gap", "Active"))))))
或者也许:
=ARRAYFORMULA(IFERROR(
IF((GOOGLEFINANCE(B2:B, "High")>=D2:D+NOW()-NOW()) * (GOOGLEFINANCE(B2:B, "Low")<=D2:D), "Filled",
IF(F2:F<0.005, "In Threshold",
IF((E2:E="Long") * (GOOGLEFINANCE(B2:B, "priceOpen")<D2:D), "JumpedG ap",
IF((E2:E="Short") * (GOOGLEFINANCE(B2:B, "priceOpen")>D2:D), "Jumped Gap", "Active"))))))