Index Match or SUMPRODUCT or VLKUP or all?

Melimob

Active Member
Joined
Oct 16, 2011
Messages
395
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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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
1ClientResult ClientStatus
2123Yes 123Compleat Only
3124Yes 124Control and Compleat
4125No 125No Control Nor Compleat
5126 126
6127 127Any
7128

<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>
</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,214,599
Messages
6,120,449
Members
448,966
Latest member
DannyC96

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