Custom functions

@chris-derrell
Sorry was out of town for my project implementation. BTW thank you so much for your guidance and your support. I tried your logic and it works perfectly.

One word to explain… you are awesome!!!

I will post my final code and the requirement which I achieved by using your logic in the same forum post shortly.
Thanks again buddy!!!