Hi FDibbins,

I also faced a similar problem. I used the formula suggested by you and it is working properly. Though this was posted 5 years back, I still would want to thank you.

Thanks
Mrigansh Jain