удалить все в диапазоне C2: D и вставить это в C2 , затем перетащить вниз:
=ARRAYFORMULA({SUM(IFERROR(IF(
QUERY(GOOGLEFINANCE(A4, "price", WORKDAY(TODAY(), -200),
TODAY(), "daily"), "select Col2 offset 2", 0)>
QUERY(GOOGLEFINANCE(A4, "price", WORKDAY(TODAY(), -200),
TODAY(), "daily"), "select Col2 offset 1", 0), 1, 0)))/COUNTA(
QUERY(GOOGLEFINANCE(A4, "price", WORKDAY(TODAY(), -200),
TODAY(), "daily"), "select Col2 offset 1", 0)), STDEV(IFERROR((
QUERY(GOOGLEFINANCE(A4, "price", WORKDAY(TODAY(), -200),
TODAY(), "daily"), "select Col2 offset 2", 0)-
QUERY(GOOGLEFINANCE(A4, "price", WORKDAY(TODAY(), -200),
TODAY(), "daily"), "select Col2 offset 1", 0))/
QUERY(GOOGLEFINANCE(A4, "price", WORKDAY(TODAY(), -200),
TODAY(), "daily"), "select Col2 offset 1", 0)))})