Better to provide some screenshot or sample here which will indeed helpful, for others to understand your requirement.
Hi,
Thank you for your question.
We cannot fully understand your requirement based on your current description. It would be great if you can provide us a sample file, so that it will be easy for us to help you.
You can send the sample file to this email account: ibsofc@microsoft.com and inform us here (the email subject should be the link of this thread).
This seems cannot be achieved easily with any formulas or built-in features, we probably need some VBA codes here.
Regards,
Ethan Hua
TechNet Community Support