Need a formula to cross search two tables using a string

shivakanou

New Member
Joined
May 19, 2015
Messages
8
Hello everybody!

I need help with making a formula where I'll input one string from Table A and I'll return me the code from Table B that has the same string from Table A, let me explain:

I have two tables, Table A has a code and a simple description, like "describes employees", table B also has a code, but it's different from Table A's and the "same" description but bigger, like "describes employees that work here".
What I need to do is get the description from Table A "describes employees", do a search on Table B with it and return me the code, example:

Table A
codFun - describes employees

Table B
matEmp - describes employees that work here

Result expected:
(search) describes employees
codFun - matEmp - describes employees that work here

I'm trying to do this using FIND and MATCH, but it's only returning me the amount of cells that has similar values (usually 1).

Does anybody knows if it's possible and how to make this formula?

Thank you!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Assuming Table A is in A1:B10, Table 2, is in D1:E10,

Code:
=INDEX(A1:A10,MATCH("*"&E1&"*",B1:B10,0))
 
Upvote 0
Assuming Table A is in A1:B10, Table 2, is in D1:E10,

Code:
=INDEX(A1:A10,MATCH("*"&E1&"*",B1:B10,0))

Awesome, thanks!

But, what if the phrase is a little bit different?

Example:
Table A - employee's e-mail contact
Table B - employee's e-mail

Because it's searching for "employee's e-mail contact" it didn't return the code corresponding to "employee's e-mail".

Is there a way to solve this?

Thank you!
 
Upvote 0

Thanks Sankar!
One thing, I'm facing this issue here:
udcarRF.png


Above it I have the exact same case and it's working fine, do you have any idea what could be the problem?

Thank you
 
Upvote 0

Forum statistics

Threads
1,215,018
Messages
6,122,703
Members
449,093
Latest member
Mnur

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