Extract 10-digit string based on consistent lead-in digits
I have a number I'm trying to extract from a column and I can't figure out how. The number is *always* 10 digits, *always* starts with 50000, and can appear *anywhere* in the cell in Column A (start, middle or end).
Column A has a mock-up of the type of data I'm working with. The Result column shows what I want to achieve: a 10-digit number based on the 50000##### number located anywhere in Column A.
I know I need to use FIND, and I've looked at similar Q & A in the Community, but can't land on an answer. Thoughts? Thanks!
Best Answer
-
Hi @Alex888,
As long as "5" doesn't appear in the words prior to the digit of numbers, you could use this:
- =MID([Column A]@row, FIND("5", [Column A]@row), 10)
Hope this helps!
Best,
Zach Hall
Training Delivery Manager / Charter Communications
Answers
-
Hi @Alex888,
As long as "5" doesn't appear in the words prior to the digit of numbers, you could use this:
- =MID([Column A]@row, FIND("5", [Column A]@row), 10)
Hope this helps!
Best,
Zach Hall
Training Delivery Manager / Charter Communications
-
Thanks!! That was just what I needed to get straight - my final formula I'm using (to only use 50000 numbers and to make to value is): =VALUE(MID([Column A]@row, FIND("50000", [Column A]@row), 10)) Thanks, again!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!