Need to extract data from two feilds

pratheesh1983

Board Regular
Joined
Aug 13, 2015
Messages
55
Office Version
  1. 365
Platform
  1. Windows
:50: ABCDHE
1276899
Bangalore 12389
:57:
Yas TV
ABC Rd
:59: Federal Institute
57Yas TV
ABC Rd
I am looking for a formula which will extract the the data in field( field tag is the no. between two collen)
column two will give the info on the field the content needs to be extracted, and third column is where the forumula needs to be put for extracting the data from the feild tag no. mentioned in 2nd Column. Kindly ref above example. The complete data in that field tag needs to be extracted, which means it needs to consider the line break.

I would be really appreciate if any can help in defining a formula here.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I assume these are wrapped cells. Consider this approach as a first thought off my head:

Book1
ABC
1:50: ABCDHE 1276899 Bangalor 12389 :57: Yas TV ABC Rd :59: Federal Institute57 Yas TV ABC Rd
Sheet1
Cell Formulas
RangeFormula
C1C1=MID(A1,SEARCH(":"&B1&":",A1)+4,SEARCH(":??:",A1&":00:",SEARCH(":"&B1&":",A1)+1)-SEARCH(":"&B1&":",A1)-4)
 
Upvote 0

Forum statistics

Threads
1,215,460
Messages
6,124,949
Members
449,198
Latest member
MhammadishaqKhan

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