Not really a cookbook, but you can start learning arrayformula from here.
The rest is just based on the situation, really. If you need me just send me a message.