twist on nth ocurrence of text in column

DThib

Active Member
Joined
Mar 19, 2010
Messages
464
Office Version
  1. 365
Platform
  1. Windows
I have the formula below working but I need it to pull a portion of the text found not the whole string. My fix is from another formula I worked out. but it is throwing an error.

Can anyone help me fix this to work? I have bolded what I need it to find for every iteration. It is supposed to find the word and then pulls the number after.

HTML:
=INDEX('Run Data'!$A:$A, SMALL(IF(ISNUMBER(SEARCH("Run", 'Run Data'!$A:$A)),ROW(MID('Run Data'!$A:$A,SEARCH("Run", 'Run Data'!$A:$A)+3,2)),2)))

Finds Example entire string: 1120-01X TK Run15 19Nov2008 Plate01: Expired Date Table

DThib
 
I am trying this formula to pull the numbers I need, but it keeps giving me a #NUM result.
Code:
=INDEX('Run Data'!$A:$A,SMALL(IF(ISNUMBER(MID([COLOR=#222222][FONT=Verdana]'Run Data'!$A:$A,[/FONT][/COLOR]SEARCH("Run",'Run Data'!$A:$A)+3,2),ROW('Run Data'!$A:$A)),2))

If I leave out the MID function I pull the whole 2nd occurrence but not just the 2 numbers after "RUN".
Code:
=INDEX('Run Data'!$A:$A,SMALL(IF(ISNUMBER(SEARCH("Run",'Run Data'!$A:$A)),ROW('Run Data'!$A:$A)),2))

Will pull the entire 2nd occurrence text: VFG-0xxS TK Run15 19Mar2018 Plate01: Experiment Data Table

Can anyone help?

I am still trying to solve this. Can one of the brilliant VBAers please help!

DThib
 
Upvote 0

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
I am still trying to solve this. Can one of the brilliant VBAers please help!
I am unclear as to exactly what you have (multiple columns and rows? single column A?) and exactly what you want from it. Can you give a larger sampling of data and show exactly what you want from the sampling you post?

Also, you asked for help from VBAers but you seem to be after a formula solution, not a VBA coded solution... please clarify.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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