Vlookup based on multi search

chandrashekar

Well-known Member
Joined
Jul 15, 2005
Messages
529
Office Version
  1. 365
Platform
  1. Windows
Hello Team,

Could you please help on vlookup formula based on multi search
[TABLE="width: 230"]
<tbody>[TR]
[TD]Desc[/TD]
[TD]Formula Output[/TD]
[/TR]
[TR]
[TD="align: center"]this is chair[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]apple on the tree[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="align: center"]Chair broken[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]Fresh Tomoato[/TD]
[TD="align: center"]3
[/TD]
[/TR]
[TR]
[TD="align: center"]
[TABLE="width: 168"]
<tbody>[TR]
[TD]Vlookup Search[/TD]
[TD]Desc Code[/TD]
[/TR]
[TR]
[TD]Chair[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Tomoto[/TD]
[TD="align: right"]3[/TD]
[/TR]
</tbody><colgroup><col><col></colgroup>[/TABLE]


Regards,

Chandru​
[/TD]
[TD="align: center"][/TD]
[/TR]
</tbody><colgroup><col span="2"></colgroup>[/TABLE]
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
For your search criteria add in a wild card on each side of the look up value.

For example;

=VLOOKUP("*"&"chair"&"*",$A$1:$B$3,2,0)


If your lookup value is in another cell then use that cell inside the formula;


=VLOOKUP("*"&$H$3&"*",$A$1:$B$3,2,0)
 
Upvote 0
[Table="width:, class:grid"][tr][td]Row\Col[/td][td]
A​
[/td][td]
B​
[/td][/tr][tr][td]
1​
[/td][td]Desc[/td][td]Formula Output[/td][/tr]
[tr][td]
2​
[/td][td]this is chair[/td][td]
1​
[/td][/tr]
[tr][td]
3​
[/td][td]apple on the tree[/td][td]
2​
[/td][/tr]
[tr][td]
4​
[/td][td]Chair broken[/td][td]
1​
[/td][/tr]
[tr][td]
5​
[/td][td]Fresh Tomato[/td][td]
3​
[/td][/tr]
[tr][td]
6​
[/td][td]Vlookup Search[/td][td]Desc Code[/td][/tr]
[tr][td]
7​
[/td][td]Chair[/td][td]
1​
[/td][/tr]
[tr][td]
8​
[/td][td]Apple[/td][td]
2​
[/td][/tr]
[tr][td]
9​
[/td][td]Tomato[/td][td]
3​
[/td][/tr]
[/table]


In B2 enter and copy down (to B5)...

=LOOKUP(9.99999999999999E+307,SEARCH(" "&$A$7:$A$9&" "," "&$A2&" "),$B$7:$B$9)
 
Upvote 0
Hello Aladin,

Can you please explain how this formula works (=LOOKUP(9.99999999999999E+307). I tried using evaluate formula but did not understand it :)

Regards,

Chandrashekar B
 
Upvote 0

Forum statistics

Threads
1,225,757
Messages
6,186,850
Members
453,379
Latest member
gabriellegonzalez

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