Vlookup and match

Access Beginner

Active Member
Joined
Nov 8, 2010
Messages
311
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

I have the following table.



In Cell B5 I'll have the value of Region 1 and in Cell C4 I'll have the value of T1.3. I'd like to have a formula that will return "Yes" if T1.3 is in the row that contains Region 1.


RowColumn RColumn SColumn TColumn U
44​
RegionPriority OnePriority TwoPriority Three
45​
Region 1T1.3T1.5T2.1
46​
Region 2T1.3T2.1T3.1
47​
Region 3T1.3T1.5T2.1
48​
Region 4T1.3T2.1T3.1
49​
Region 5T1.3T2.1T1.2
50​
Region 6T1.4T2.1T1.1
51​
Region 7NANANA
52​
Region 8T1.3T1.5T2.1
53​
Region 9T1.2T1.3T2.1
54​
Region 10T1.3T1.4T2.1
55​
Region 11T1.2T1.3T2.1
56​
Region 12T1.3T1.5T2.1
57​
Region 13T1.4T2.1T2.4
58​
Region 14T1.3T1.5T2.1
59​
Region 15T1.5T2.1T3.1
60​
Region 16T1.3T1.5T2.1
61​
Region 17T1.3T1.5T2.1



In Cell B5 I'll have the value of Region 1 and in Cell C4 I'll have the value of T1.3. I'd like to have a formula that will return "Yes" if T1.3 is in the row that contains Region 1.

I have the following formula "=IFERROR(IF(MATCH(S$66,$S$46:$U$46,0)<>"","Yes",""),"")" . However I don't want to have different formulas for each Region.

Example if the desired outcome is below:
T1.1T1.2T1.3T1.4T1.5T2.1
Region 1YesYesYes
Region 2YesYes
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
How about:

Book1
BCDEFQRSTU
1
4T1.1T1.2T1.3T1.4
5Region1  Yes 
6Region2  Yes 
7Region3  Yes 
8Region4  Yes 
9Region5  Yes 
10Region6   Yes
43
44RegionPriorityOnePriorityTwoPriorityThree
45Region1T1.3T1.5T2.1
46Region2T1.3T2.1T3.1
47Region3T1.3T1.5T2.1
48Region4T1.3T2.1T3.1
49Region5T1.3T2.1T1.2
50Region6T1.4T2.1T1.1
51Region7NANANA
52Region8T1.3T1.5T2.1
Hoja11
Cell Formulas
RangeFormula
C5:F10C5=IF(COUNTIFS($R$45:$R$61,$B5,$S$45:$S$61,C$4),"Yes","")
 
Upvote 0
I thought it was just a column, then how about in C5:

=IF(SUMPRODUCT(($R$45:$R$61=$B5)*(($S$45:$U$61=C$4))),"Yes","")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
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