Forum Discussion
TheDub
May 01, 2024Iron Contributor
Referring to PREVIOUS rows only within BYROW() (or any other function)
Apologies if this has been addressed previously, but I couldn’t find an answer. I believe the issue is the same for both situations below – which is the reason why I didn’t post two separate question...
- May 01, 2024
The first part might be
= LET( currentMax, SCAN(0, currentValue, MAX), priorMax, DROP(VSTACK(0, currentMax), -1), action?, currentMax > priorMax, HSTACK(currentMax, IF(action?, "New Max!", "Same old")) )
giving
PeterBartholomew1
May 01, 2024Silver Contributor
The first part might be
= LET(
currentMax, SCAN(0, currentValue, MAX),
priorMax, DROP(VSTACK(0, currentMax), -1),
action?, currentMax > priorMax,
HSTACK(currentMax, IF(action?, "New Max!", "Same old"))
)
giving
SergeiBaklan
May 01, 2024Diamond Contributor
- PeterBartholomew1May 01, 2024Silver Contributor
Don't spoil it for me Sergei
! I don't get that many opportunities to show off an Excel 365 insiders beta solution.