Index Match or SUMPRODUCT or VLKUP or all?

Melimob

Active Member
Joined
Oct 16, 2011
Messages
396
Office Version
  1. 365
Hi

I'm confusing myself

I have a 2 tables.
Table 1 is where I want to say Yes or No as end result.
Table 1 & 2 match is based on the 'Client Name'
In Table 2, there is a column against the client which shows 'Compleat' within the text value.
I.e. it may say:
Compleat Only = this should return Yes
Control and Compleat = this should return Yes
No Control Nor Compleat = this should return No

If blank or error should show as blank

Any advice gratefully received!

Many thanks
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Try this

<table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:149.23px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td><td >D</td><td >E</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td style="text-align:center; ">Client</td><td style="text-align:center; ">Result</td><td > </td><td style="text-align:center; ">Client</td><td style="text-align:center; ">Status</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td style="text-align:right; ">123</td><td >Yes</td><td > </td><td style="text-align:right; ">123</td><td >Compleat Only</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td style="text-align:right; ">124</td><td >Yes</td><td > </td><td style="text-align:right; ">124</td><td >Control and Compleat</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td style="text-align:right; ">125</td><td >No</td><td > </td><td style="text-align:right; ">125</td><td >No Control Nor Compleat</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td style="text-align:right; ">126</td><td > </td><td > </td><td style="text-align:right; ">126</td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td style="text-align:right; ">127</td><td > </td><td > </td><td style="text-align:right; ">127</td><td >Any</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td style="text-align:right; ">128</td><td > </td><td > </td><td > </td><td > </td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b></b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formul</td></tr><tr><td >B2</td><td >=IFERROR(IF(IFERROR(SEARCH("Nor Compleat",VLOOKUP(Table1[[#This Row],[Client]],Table2,2,0)),0),"No",IF(SEARCH("Compleat",VLOOKUP(Table1[[#This Row],[Client]],Table2,2,0))>0,"Yes","No")),"")</td></tr></table></td></tr></table> <br /><br />
 
Upvote 0
Try this

ABCDE
Yes Compleat Only
Yes Control and Compleat
No No Control Nor Compleat
Any

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:76.04px;"><col style="width:76.04px;"><col style="width:76.04px;"><col style="width:76.04px;"><col style="width:149.23px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]1[/TD]
[TD="align: center"]Client[/TD]
[TD="align: center"]Result[/TD]

[TD="align: center"]Client[/TD]
[TD="align: center"]Status[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]2[/TD]
[TD="align: right"]123[/TD]

[TD="align: right"]123[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]3[/TD]
[TD="align: right"]124[/TD]

[TD="align: right"]124[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]4[/TD]
[TD="align: right"]125[/TD]

[TD="align: right"]125[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]5[/TD]
[TD="align: right"]126[/TD]

[TD="align: right"]126[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]6[/TD]
[TD="align: right"]127[/TD]

[TD="align: right"]127[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]7[/TD]
[TD="align: right"]128[/TD]

</tbody>

CellFormul
B2=IFERROR(IF(IFERROR(SEARCH("Nor Compleat",VLOOKUP(Table1[[#This Row],[Client]],Table2,2,0)),0),"No",IF(SEARCH("Compleat",VLOOKUP(Table1[[#This Row],[Client]],Table2,2,0))>0,"Yes","No")),"")

<tbody>
</tbody>

<tbody>
</tbody>

Hi Dante

I'm so sorry I omitted to reply to this, I thought I had... just want to thank you for your help!
 
Upvote 0
Dont worry. I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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