Perhaps the OP could supply the function definition to make things clearer. Sent from my iPhone On 8 Jul 2020, at 11:24, Scott Ribe <scott_ribe@xxxxxxxxxxxxxxxx> wrote: >> On Jul 7, 2020, at 7:14 PM, Wells Oliver <wells.oliver@xxxxxxxxx> wrote: >> >> Sorry guys, it works exactly the way I want, just wanted to suppress its output when called for thousands of rows. Apologies if I wasn't clear enough. > > It seems that it doesn't work the way you want, because it can output thousands of rows ;-) > > >