As an example, I have the following sets of accounts. Under Account is what I have, and Number and Type are what I need returned. As a disclaimer, none of these are real accounts, but the lengths are all representative.
[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]Account
[/TD]
[TD]Number
[/TD]
[TD]Type
[/TD]
[/TR]
[TR]
[TD]*ZHR|U1234567
[/TD]
[TD]U1234567
[/TD]
[TD]*ZHR
[/TD]
[/TR]
[TR]
[TD]STID|U1234567 1
[/TD]
[TD]U1234567
[/TD]
[TD]STID
[/TD]
[/TR]
[TR]
[TD]IR|Q45678989
[/TD]
[TD]Q4567898
[/TD]
[TD]IR
[/TD]
[/TR]
[TR]
[TD]DQW|ITERW|Q4765567 1
[/TD]
[TD]Q4765567
[/TD]
[TD]DQW|ITERW
[/TD]
[/TR]
[TR]
[TD]CVR|L1425690
[/TD]
[TD]L1425690
[/TD]
[TD]CVR
[/TD]
[/TR]
</TBODY>[/TABLE]
All of the Number columns need to be the first letter followed by 7 digits, although some of the Accounts have 8-9 characters after the letter. The Type column needs to strip off the final "|" and anything following that (again tricky because of differing character lengths). If it matters, there are a total of 48 different Type categoris and 4 different possible numbers before the 7 characters in the Number categories. Also, the number combinations are seemingly infinite.
I'm pretty certain this requires VBA to perform. I've been messing around with it all day but haven't been able to get anywhere. I would greatly appreciate some help with this.
Thanks.
[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]Account
[/TD]
[TD]Number
[/TD]
[TD]Type
[/TD]
[/TR]
[TR]
[TD]*ZHR|U1234567
[/TD]
[TD]U1234567
[/TD]
[TD]*ZHR
[/TD]
[/TR]
[TR]
[TD]STID|U1234567 1
[/TD]
[TD]U1234567
[/TD]
[TD]STID
[/TD]
[/TR]
[TR]
[TD]IR|Q45678989
[/TD]
[TD]Q4567898
[/TD]
[TD]IR
[/TD]
[/TR]
[TR]
[TD]DQW|ITERW|Q4765567 1
[/TD]
[TD]Q4765567
[/TD]
[TD]DQW|ITERW
[/TD]
[/TR]
[TR]
[TD]CVR|L1425690
[/TD]
[TD]L1425690
[/TD]
[TD]CVR
[/TD]
[/TR]
</TBODY>[/TABLE]
All of the Number columns need to be the first letter followed by 7 digits, although some of the Accounts have 8-9 characters after the letter. The Type column needs to strip off the final "|" and anything following that (again tricky because of differing character lengths). If it matters, there are a total of 48 different Type categoris and 4 different possible numbers before the 7 characters in the Number categories. Also, the number combinations are seemingly infinite.
I'm pretty certain this requires VBA to perform. I've been messing around with it all day but haven't been able to get anywhere. I would greatly appreciate some help with this.
Thanks.