Given an Excel table of following structure:
Col.A Col.B Col.C Col.D Col.E Col.F Col.G
2 3 2 5 2 2
5 5 2 5 5 5 5
The formula I'm using in E1 is
=FILTER($A1:$D1,$A1:$D1=2)
and in E2
=FILTER($A2:$D2,$A2:$D2=5)
Excel returns the values in different cells E1, F1 and E2, F2 and G2.
Is it instead possible to store e.g. the outputs of the formula in E1 as an array in cell E1 itself in the shape of
{2;2}
and for E2
{5;5;5}
that can be further analyzed with a formula like
=SUMPRODUCT({2;2}=2)
?
Ideally, without the use of an array formula.
I know that I can reference the cells directly using
=SUMPRODUCT($A1:$D1=2)
but this is not what I am trying to achieve here.
Thanks in advance.