legendary_popsicle
New Member
- Joined
- Jul 25, 2011
- Messages
- 49
Hey all,
I am working with data where I need to extract a 10-digit number from a string. Where the 10-digit number is in the string varies, so I can't use a simple left/len combination. Here's an example below:
So this:
Is there a way to modify the formula above so that it searches for 10 consecutive numbers and not just the first number in a string?
Thank you all!
I am working with data where I need to extract a 10-digit number from a string. Where the 10-digit number is in the string varies, so I can't use a simple left/len combination. Here's an example below:
something and email@me.com 1234567890 stuff things
The formula I am using now is this:
=MID(F4,MIN(FIND({0,1,2,3,4,5,6,7,8,9},F4&"0123456789")),10)
This finds the first number in a string and returns that number and the next 9 digits for a total of a 10-digit string (so it would return 1234567890). However, I run into an issue when I have a string that has numbers in the email address.
So this:
number in email123@me.com 1234567890 example
Would return this:
Is there a way to modify the formula above so that it searches for 10 consecutive numbers and not just the first number in a string?
Thank you all!