Then you don't know how the input data set is formatted (and neither do we) so I don't think this approach will work for you. If you can provide the full logic with a small input data set and expected output someone may be able to help you with the code, but it will need to be a fully worked example to get it going. You can also search on LexJansen.com to see if there's other code examples there that may work for you. Good Luck.
... View more