Hi Strato
Don't you think you should just post some sample data with a clear explanation as to expected result? Without that, I've no inclination to attempt a solution
Regards
MD