将此公式转换为 arrayformula

Convert this formula into arrayformula

简而言之,如何将此公式重写为数组公式变体?谢谢

=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")))))

试试这个,如果它适合你:

=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"))))))