soccer4ward
New Member
- Joined
- Aug 11, 2020
- Messages
- 8
- Office Version
- 2016
- 2013
- 2011
- 2010
- 2007
- Platform
- Windows
Hello,
I am attempting to extract data from a string. I have employees copying tabular data out of another software. The software got updated, so now copied data only gets pasted as a string in one cell. I was hoping someone is able to assist with a VBA code or a formula to extract any numbers from that string. Numbers are 7 to 9 digits long and can be anywhere in the string (since copied data varies from employee to employee depending on how many columns they view in another software). For an example, if i have the following string:
Original string:
adkjasdf 123456789. adfa456 1234567 fdgja;gf 987654321 asdfja;df
Result:
123456789, 1234567, 987654321
As you can see I'm only interested in consecutive 7 to 9 digit numbers. Anything less or more should be ignored.
any help is greatly appreciated!
thank you,
I am attempting to extract data from a string. I have employees copying tabular data out of another software. The software got updated, so now copied data only gets pasted as a string in one cell. I was hoping someone is able to assist with a VBA code or a formula to extract any numbers from that string. Numbers are 7 to 9 digits long and can be anywhere in the string (since copied data varies from employee to employee depending on how many columns they view in another software). For an example, if i have the following string:
Original string:
adkjasdf 123456789. adfa456 1234567 fdgja;gf 987654321 asdfja;df
Result:
123456789, 1234567, 987654321
As you can see I'm only interested in consecutive 7 to 9 digit numbers. Anything less or more should be ignored.
any help is greatly appreciated!
thank you,