VLOOK UP to match the cell contains separated by comma

sainathd

New Member
Joined
Aug 29, 2017
Messages
16
Hi,

I have table consisting of two columns shown below, I need to match say R38 which is col 1 row 1,I want it to return 0.959901738 which is col 2, how can I do it?
Using wild card I cannot match the entire R38, I will have to write only R3 which may have another value assigned elsewhere hence returning the value that I don't desire.

Awaiting response
[TABLE="width: 613"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 518"]
<tbody>[TR]
[TD="class: xl22021, width: 518"]R5-R9,R15,R19,R28-R31,R38,R39,R47,R151[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 95"]
<tbody>[TR]
[TD="class: xl22021, width: 95"]0.959901738[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 518"]
<tbody>[TR]
[TD="class: xl22021, width: 518"]R217,R294,R406,R407,R432-R443,R484[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]0.66[/TD]
[/TR]
[TR]
[TD]R44[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
With your lookup value A4, change to match your data
Code:
=VLOOKUP("*"&A4&"*",A1:B2,2,0)
 
Upvote 0
Hi,
Appreciate your response however when I tried your formula, it always returned the first cell value of column 2 instead of it's corresponding column and also for lookup value A4, I cannot select a cell say D4,I need to drag the formula for nearly 500 lines, I cannot type the lookup value for all.Please let me know if you even better solution
 
Upvote 0
Not sure exactly what you want. Do you want to return 0.959901738 or the column number 2? How do you want to input the lookup value? Well it change?
 
Upvote 0
E1: R38

In F1 enter and copy down:

=IF($E1="","",IFERROR(LOOKUP(9.99999999999999E+307,SEARCH(","&SUBSTITUTE($E1," ","")&",",","&SUBSTITUTE($A$1:$A$10," ","")&","),$B$1:$B$10),"not found"))
 
Upvote 0
I want to return the data in column number 2, I'd like to ask you that instead of lookup value A4 in your formula,Is there any way to input cell number, because it would make it easier for me when I'll copy it for all other cells.
 
Upvote 0
I want to return the data in column number 2, I'd like to ask you that instead of lookup value A4 in your formula,Is there any way to input cell number, because it would make it easier for me when I'll copy it for all other cells.
Not sure what you mean by input cell number.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
Members
452,636
Latest member
laura12345

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