Trebor8484
Board Regular
- Joined
- Oct 27, 2018
- Messages
- 69
- Office Version
- 2013
- Platform
- Windows
Hi,
I'm looking for a solution to the following issue please.
I am importing data into excel from a web application where some of the data is in "free text" format.
I am trying to extract the first group of numeric values from a string, so for example cell in cell A1 if the value is something like "Hello, my name is Scott and I live at 123 Maiden Road, I've lived here for the last 23 years" - so in this I would need to see 123 in the adjacent cell, ignoring the "23" part of the string.
I know this could probably be done with a formula, but a vba solution would be better so I can include it with the rest of my project.
Thanks
I'm looking for a solution to the following issue please.
I am importing data into excel from a web application where some of the data is in "free text" format.
I am trying to extract the first group of numeric values from a string, so for example cell in cell A1 if the value is something like "Hello, my name is Scott and I live at 123 Maiden Road, I've lived here for the last 23 years" - so in this I would need to see 123 in the adjacent cell, ignoring the "23" part of the string.
I know this could probably be done with a formula, but a vba solution would be better so I can include it with the rest of my project.
Thanks