with great respect, I do not understand your question.

What exactly are you trying to achieve, perhaps if you were to post a sample workbook with some input data and expected results you would find someone who can help resolve the issue you face.

Hopefully this sample workbook will also show us volunteers what you have already tried before you posted your question??

Jmac1947