Find words in a cell

neilabcd

New Member
Joined
Apr 15, 2014
Messages
15
Hi Experts,

i desperately need help with a formula here.
I have a huge data sheet with a column which has revelevt info in the below format -

**Unworkable code removed**

i need to extract the below words and then use a vlookup to get what info i need.

**Unworkable code removed**

Foe ex, the first fig, has a cell with PUB03 in it, i need to extract this above list from the first column.

How do i do this?
 
Last edited by a moderator:
Find them and do what with them?
If you already have the big column of data and you already have the table in the second screen shot, what actual result(s) do you want, and where do you want it(them)?
I'm afraid I have no idea what I am trying to actually produce: :confused:

Also, is it possible that more than one of the "words" can appear in a single cell in the big column and if so does that affect what should happen?

Ok :) so the words wont be repeated.
i am looking to find the works in the first col of the 2nd Fig in the big list of data
after extracting that, i will do a vlookup to the 2nd pic, to get the names of those codes.
let me know if that helps
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
i am looking to find the works in the first col of the 2nd Fig in the big list of data
after extracting that, i will do a vlookup to the 2nd pic, to get the names of those codes.
Can we do it all at once? I think this is what you are aiming for.

Formula copied down.

Excel Workbook
GHIJKBLBM
2D&I01e-Borders
3D&I02Defence Modernisation
4HEA01Electronic Patient Records
5GOV01Intelligent Transport
6GOV02Police Analytics
7GOV03Police Command & Control
8GOV04Declaration Management
9SS01FOD/Self service
10PUB01Application ModernisationSMRTCITY-SMRTSSSS, ISAPG30-, GBSSECT-PUB03, zGrowth-ZSPCTY02CURAM
11PUB02Fraud & ErrorGBSSECT-PUB01, ISAPG30-Application Modernisation
12PUB03CURAMPROC-IGSPU, SMRTCITY-SMRTPSAF, ISAPG51-, GBSSECT-D&I02Defence Modernisation
13PROC-IGSPU, ISAPG51-, GBSSECT-D&I02Defence Modernisation
14PROC-IGSPU, ISAPG51-, GBSSECT-D&I02Defence Modernisation
15PROC-IGSPU, ISAPG51-, GBSSECT-D&I02Defence Modernisation
Extract
 
Upvote 0
Can we do it all at once? I think this is what you are aiming for.

Formula copied down.

Extract

*GHIJKBLBM
2D&I01e-Borders*****
3D&I02Defence Modernisation*****
4HEA01Electronic Patient Records*****
5GOV01Intelligent Transport*****
6GOV02Police Analytics*****
7GOV03Police Command & Control*****
8GOV04Declaration Management*****
9SS01FOD/Self service*****
10PUB01Application Modernisation***SMRTCITY-SMRTSSSS, ISAPG30-, GBSSECT-PUB03, zGrowth-ZSPCTY02CURAM
11PUB02Fraud & Error***GBSSECT-PUB01, ISAPG30-Application Modernisation
12PUB03CURAM***PROC-IGSPU, SMRTCITY-SMRTPSAF, ISAPG51-, GBSSECT-D&I02Defence Modernisation
13*****PROC-IGSPU, ISAPG51-, GBSSECT-D&I02Defence Modernisation
14*****PROC-IGSPU, ISAPG51-, GBSSECT-D&I02Defence Modernisation
15*****PROC-IGSPU, ISAPG51-, GBSSECT-D&I02Defence Modernisation

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:56px;"><col style="width:169px;"><col style="width:17px;"><col style="width:17px;"><col style="width:17px;"><col style="width:488px;"><col style="width:169px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
BM10=LOOKUP(2,1/SEARCH($G$2:$G$12,BL10),$H$2:$H$12)

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

Sorry for being dumb here, i just copied the data like you have and used your formula, but i get all zero.
also the first table here (lookup) is in another sheet for me. i am unable to understand how you have used the lookup (2,1 part)
Help! Plz!
 
Upvote 0
Sorry for being dumb here, i just copied the data like you have and used your formula, but i get all zero.
also the first table here (lookup) is in another sheet for me. i am unable to understand how you have used the lookup (2,1 part)
Help! Plz!


nah.. tried everythng, above formula doesnt work for me.. using excel 2010 btw
 
Upvote 0
Sorry for being dumb here, i just copied the data like you have and used your formula, but i get all zero.
also the first table here (lookup) is in another sheet for me. i am unable to understand how you have used the lookup (2,1 part)
Help! Plz!
No need to apologise - the forum is here to help in situations like this.

Firstly, when you say you copied the data like I have, can you confirm that to test you have put it in the exact ranges I did, noting that I hid columns L:BK so my screen shot would fit in my post?

See if you can get it to work just with this exact layout & data first, then we'll worry about larger data and the fact that the lookup table is on another sheet.

What is the name of the sheet that the lookup table is on?

What is the name of the sheet the column BL data (and results) is on?

I am also using Excel 2010 and you can see it is working in my example, with your data copied from post #6, so we should be able to get it to work for you.
 
Upvote 0
yoo hoo it works!!! thanks a million, u were right, i missed looking for the right column.. thanks again.
 
Upvote 0
yoo hoo it works!!! thanks a million, u were right, i missed looking for the right column.. thanks again.
Great news! :)

And have you adapted for the lookup list being on another sheet too?
 
Upvote 0
I see that you words are comma separated so you can spred them in separate cels automatic. after that is easy to use vlookup.

To spread the in different cels follow my lead:

"data" tab->"text to columns"-> delimited and from here i thing you can manage!
 
Upvote 0
I see that you words are comma separated ...
No they aren't. For example in cell BL11 in my example (BL1379 in the original sample), the cell value is "GBSSECT-PUB01, ISAPG30-" but the "word" being searched for is "PUB01" - not comma separated.
 
Upvote 0

Forum statistics

Threads
1,215,391
Messages
6,124,673
Members
449,178
Latest member
Emilou

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