Macros are powerful, but they don't work on the web or mobile. I’ve switched to the native REDUCE function for my complex ...
LAMBDA defines the custom logic, and SCAN moves that logic through your data range.