Thanks for using JustAnswer. My name is***** will do whatever I can to answer your question and will be back in a moment with my reply.
if you could send an example file, that contains some data and the output that you want it to look like, will see what can be done
i am having a hard time wrapping my head around this. I would help to get a visual idea of what the output would look like or for a few examples what you want the results to look like. In other words do a few manually that show how everything is arranged