Match with multiple conditions

Tgandhi

New Member
Joined
Jul 27, 2020
Messages
8
Office Version
  1. 2016
Platform
  1. Windows
Hello all,

Thanks in advance for always helping out.

I am trying to create a formula that would show yes or match if the column A "Name" - ABCD has all the products "123, 321, 213 and 999" and result should show False or No or something in the event if a particular name does not contain all these 4 products.

Name
Column A Column B
ABCD 123
ABCD 321
ABCD 213
ABCD 999
XYZ 123
XYZ 321
XYZ 213
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Book1
ABCDE
1ABCD123NameAll 4?
2ABCD321ABCDYes
3ABCD213XYZYes
4ABCD999RSTYes
5XYZ123
6XYZ321
7XYZ213
8RST999
9RST321
10RST213
11RST123
12XYZ999
Sheet1
Cell Formulas
RangeFormula
E2:E4E2=IF(AND(COUNTIFS($A$1:$A$12,$D2,$B$1:$B$12,123),COUNTIFS($A$1:$A$12,$D2,$B$1:$B$12,321),COUNTIFS($A$1:$A$12,$D2,$B$1:$B$12,213),COUNTIFS($A$1:$A$12,$D2,$B$1:$B$12,999)),"Yes","No")
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,496
Members
449,089
Latest member
Raviguru

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