This is similar to a post I made yesterday; however, I found more bad data and different syntaxes in the fields that nullifies the solution to it. I have a comma delimited field that follows this syntax: ID, Name, ID, Name. Yes, I have lambasted the person who thought about creating a field like this. But, I can't get to the original data, so I have to break it out to 1 per row where ID and Name are separate fields, but correctly aligned.
- The vendor field can have any number of "Vendors" in it.
- The syntax is like so "####, aaaaa, ####, aaaa"
- The "#" can be any number of digits
- The "aaaa" can be any number of alphas
- The "aaaa" may have other commas in it
The only reliable way to identify the ID from the name is that the comma after the ID is preceded by a digit. I created the attached workflow in an attempt to use REGEX replaces the pattern "#," with a pipe character so I could then split to rows and then cross tab it to the results I'm trying to get, but the split to rows part isn't working.
Input
| PO_ID | Vendor |
| 2222 | 222, Ferrari, INC, 333,McLaren LLC, 444,Toyota |
| 5555 | 123, RedBull, INC, 456, Aston LLC |
Needed Results
| PO_ID | VendorID | VendorName |
| 2222 | 222 | Ferrari,INC |
| 2222 | 333 | McLaren LLC |
| 2222 | 444 | Toyota |
| 5555 | 123 | RedBull, Inc |
| 5555 | 456 | Aston LLC |
Thanks for any help!