How do I return 2 correct matches on another column?

c.clavin

Board Regular
Joined
Mar 22, 2011
Messages
123
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi guys, I'd like to search column A and B for matches and spit out that items from Column C on Column D. Is this possible? I've used VLOOKUP in the past, but I'm not sure if this is the right tool for the job here. Ultimately I'd like to be able to use it in a dropdown, which I guess I could pull from the results if it won't work directly in the dropdown. Thanks!

Book2
ABCD
1CostcoBJ'sItemItems Both Stores Carry
2YesNoHot Dog
3YesYesSoda
4NoYesPizza
5YesYesFrench Fries
Sheet1
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
How about this formula on cell D2
VBA Code:
=IF(AND(A2="Yes",B2="Yes"),C2,"")
 
Upvote 0
In my sheet there are multiple possibilities, I think I'd need a nested filter or something. This possible?
 
Upvote 0
In my sheet there are multiple possibilities, I think I'd need a nested filter or something. This possible?
Perhaps this would work:

VBA Code:
=IFERROR(FILTER(C2,(A2="Yes")*(B2="Yes")),"")
 
Upvote 1
Solution
Ah perfect thanks, I think I got it at the same time. This was my similar one. Thanks!

=FILTER(R3:R15,ISNUMBER(SEARCH('VARIABLE LUT'!$B$16,P3:P15))*ISNUMBER(SEARCH('VARIABLE LUT'!$B$12,Q3:Q15)))
 
Upvote 0
Ah perfect thanks, I think I got it at the same time. This was my similar one. Thanks!

=FILTER(R3:R15,ISNUMBER(SEARCH('VARIABLE LUT'!$B$16,P3:P15))*ISNUMBER(SEARCH('VARIABLE LUT'!$B$12,Q3:Q15)))
If that works then I think another option would be
=FILTER(R3:R15,P3:P15&"|"&Q3:Q15='VARIABLE LUT'!$B$16&"|"&'VARIABLE LUT'!$B$12)
 
Upvote 1

Forum statistics

Threads
1,216,071
Messages
6,128,619
Members
449,460
Latest member
jgharbawi

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