Thanks stnkynts.

Code works perfect for the given conditions you mentioned above.

I'll try and modify my spreadsheet to work around the code.