need to extract number string from text string.

allivant

New Member
Joined
Feb 6, 2013
Messages
3
There is one column that includes all sorts of text and numbers. There isn't a common pattern throughout the column except a 16 number string that I want to extract and place in the next column. I've seen formulas such as:

=1*MID(A1,MATCH(TRUE,ISNUMBER(1*MID(A1,ROW($1:$19),1)),0),COUNT(1*MID(A1,ROW($1:$19),1)))

I'm not sure exactly how to use this formula. I thought I knew what $19 meant but I tried replacing ROW($1:$19) with ROW("$1:"&LEN(A1)) but that did not work.

Example:
TEXTTEXT1234567891029384TEXT
TEXT1234567891029384TEXTTEXT
1234567891029384TEXTTEXTTEXT
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try it like:

=MID(A1,MATCH(TRUE,ISNUMBER(1*MID(A1,ROW($1:$19),1)),0),COUNT(1*MID(A1,ROW($1:$30),1)))

you must confirm it with CTRL+SHIFT+ENTER not just ENTER as it is an ARRAY Formula.
 
Upvote 0
I think I got it:

=MID(A5,MATCH(TRUE,ISNUMBER(1*MID(A5,ROW(INDIRECT("$1:"&LEN($A5))),1)),0),COUNT(1*MID(A5,ROW(INDIRECT("$1:"&LEN($A5))),1)))
 
Upvote 0

Forum statistics

Threads
1,217,361
Messages
6,136,103
Members
449,991
Latest member
IslandofBDA

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top