@Nickjos:
If you want some sensible assistance, please:
As @ballardw already said, provide clearly-stated rules that can be used to construct programming logic.
Show how you want you output data to look like, so that those who'd like to volunteer to help you wouldn't have to waste their time guessing.
Kind regards
Paul D.
... View more