Forum Discussion
John_Bloggsajohnso9
Jul 03, 2024Copper Contributor
What is wrong with the following equation?
I can't get the following formula to work =FORECAST.LINEAR(L20,{XLOOKUP(L20,B26:B30,B26:B30,,-1),XLOOKUP(L20,B26:B30,B26:B30,,1)},{XLOOKUP(L20,B26:B30,D26:D30,,-1),XLOOKUP(L20,B26:B30,D26:D30,...
Lorenzo
Jul 04, 2024Silver Contributor
If HSTACK is not available in your version of Excel you can simulate it as follow:
=FORECAST.LINEAR(L20,
CHOOSE({1,2}, XLOOKUP(L20,B26:B30,B26:B30,,-1), XLOOKUP(L20,B26:B30,B26:B30,,1)),
CHOOSE({1,2}, XLOOKUP(L20,B26:B30,D26:D30,,-1), XLOOKUP(L20,B26:B30,D26:D30,,1))
)
(not tested but should work...)
John_Bloggsajohnso9
Jul 04, 2024Copper Contributor
Thanks Lz