79468365

Date: 2025-02-26 02:38:51
Score: 0.5
Natty:
Report link

Solving old problems with new Excel Solutions. This uses the map function to iterate through x and y, then creates a custom lambda function to shorten some of the calculations:

=LET(
    x, X1:X3,
    y, Y1:Y3,
    MAP(
        SEQUENCE(ROWS(x)),
        LAMBDA(v,
            LET(
                r, LAMBDA(a, ROWS(INDEX(a, 1):INDEX(a, v))),
                SUMPRODUCT(
                    INDEX(x, SEQUENCE(r(x))),
                    INDEX(y, SEQUENCE(r(y), , r(y), -1))
                )
            )
        )
    )
)

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bam