LAMBDA defines the custom logic, and SCAN moves that logic through your data range.
Make Excel evaluate your data for you.