LAMBDA defines the custom logic, and SCAN moves that logic through your data range.
Microsoft's spreadsheet program can do way more than you might imagine. These are the hacks and tricks you need to know.