lookup containing specific words

Anand_N

New Member
Joined
Mar 25, 2012
Messages
10
Hi there,
i have a list of address in Sheet 1 Column A,
also i have a list of only states in Sheet 2 Column A
i want to check if the state names in Sheet 2 Column A are present in Sheet 1 Column A

below is the example...

Sheet 1 Column A

1 Maharashtra, india 400086 Tel No 400 056 45
2 Gujrat,India 400096
3 Maharashtra, india 400095
and do on

Sheet 2 Column A
1 Maharastra
2 Goa
3 Gujrat
and so on

Output

Sheet 1 Column A Column B

1 Goa, india 400086 Tel No 400 056 45 Goa
2 Gujrat,India 400096 Gujrat
3 Maharashtra, india 400095 #N/A


Please help me with a solution...i need this often

Thanks,
 
Last edited:

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Please, check your data and output.

How did you find this output line?
1 Goa, india 400086 Tel No 400 056 45 Goa

There is no Goa state in any row in Sheet1.

M.
 
Upvote 0
that was just an example sir...i was not very specific...but the idea is to extract all records matching with goa or any "x" text or number value.
 
Upvote 0
In B1 of Sheet1 enter and copy down:
Rich (BB code):

=LOOKUP(9.99999999999999E+307,SEARCH(","&Sheet2!$A$1:$A$3&",",","&SUBSTITUTE(A1," ","")&","),
   Sheet2!$A$1:$A$3)
 
Upvote 0

Forum statistics

Threads
1,221,618
Messages
6,160,873
Members
451,674
Latest member
TJPsmt

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