mattyj7183
New Member
- Joined
- Dec 28, 2015
- Messages
- 15
- Office Version
- 365
- Platform
- Windows
I've read a few posts trying to solve this problem, but I think mine may be a little different than the ones I have seen so far. And please, by all means, if this has already been answered please guide me.
Essentially I have strings of text about 5000+ rows long with names, account numbers and other identifying info, but the task is to extract just the account numbers. Examples below all in A1:
PPC, Inc. (12345678, Corporate)
Smith Capital (ABCD Mod Cons), Raymond (98765432, Trust)
Jones, Rich E. & Jane A Doe (87654321, Exect)
Doe Family Trust (Stock), Joe & Jayne (11-F222-77-8, Trust)
Smith, II, Joe(122112288, Indiv (Crawford))
Jones, II, Steve(1234567),
Jones, II 2012 Trust, Josh R. (11112222, Trust)
First I tried text to columns using the "(" as the first delimiter and then the "," as the second. This worked on a good number, but the 5th Smith example I showed resulted in "Crawford))" showing in C3 which is not ideal. In some cases like the 2nd example it put part the account number in C3.
I also tried the GetNumber UDF I've seen floating around but that (as the name suggests) only grabs numbers but as you can see the 4th example has letters and numbers. It also automatically concatenated the numbers removing the "-" between each number. Both results not ideal.
Let me know if you need any further info.
Thanks in advance!
Essentially I have strings of text about 5000+ rows long with names, account numbers and other identifying info, but the task is to extract just the account numbers. Examples below all in A1:
PPC, Inc. (12345678, Corporate)
Smith Capital (ABCD Mod Cons), Raymond (98765432, Trust)
Jones, Rich E. & Jane A Doe (87654321, Exect)
Doe Family Trust (Stock), Joe & Jayne (11-F222-77-8, Trust)
Smith, II, Joe(122112288, Indiv (Crawford))
Jones, II, Steve(1234567),
Jones, II 2012 Trust, Josh R. (11112222, Trust)
First I tried text to columns using the "(" as the first delimiter and then the "," as the second. This worked on a good number, but the 5th Smith example I showed resulted in "Crawford))" showing in C3 which is not ideal. In some cases like the 2nd example it put part the account number in C3.
I also tried the GetNumber UDF I've seen floating around but that (as the name suggests) only grabs numbers but as you can see the 4th example has letters and numbers. It also automatically concatenated the numbers removing the "-" between each number. Both results not ideal.
Let me know if you need any further info.
Thanks in advance!