UNIQUE List With Criteria

excelbytes

Active Member
Joined
Dec 11, 2014
Messages
251
Office Version
  1. 365
Platform
  1. Windows
On the attached is a list of orders and line items. Based on certain criteria, column C indicates whether to include it in the list of Orders in column D or not. What would be the formula to generate a unique list of orders in column D that exclude any order that has a "No" associated with it in column C?

Pop Top Image.png
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
On the attached is a list of orders and line items. Based on certain criteria, column C indicates whether to include it in the list of Orders in column D or not. What would be the formula to generate a unique list of orders in column D that exclude any order that has a "No" associated with it in column C?

View attachment 100330
Here you go. You will need to change the ranges as appropriate.

Multi-level Bill Of Materials explosion.xlsm
ABCD
1Sales Order #Line # IncludeOrders
22720431Yes272134
32720432Yes272166
42720433Yes
52720434Yes
62720435No
72721341Yes
82721662Yes
92721663Yes
102721664Yes
UNIQUE
Cell Formulas
RangeFormula
D2:D3D2=UNIQUE(FILTER(A2:A10,NOT(ISNUMBER(XMATCH(A2:A10,FILTER(A2:A10,C2:C10="No"))))))
Dynamic array formulas.
 
Upvote 0
Solution
You could also try this bit shorter structure.

23 10 14.xlsm
ABCD
1Sales Order #Line # IncludeOrders
22720431Yes272134
32720432Yes272166
42720433Yes
52720434Yes
62720435No
72721341Yes
82721662Yes
92721663Yes
102721664Yes
List
Cell Formulas
RangeFormula
D2:D3D2=UNIQUE(FILTER(A2:A10,COUNTIFS(A2:A10,A2:A10,C2:C10,"No")=0))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,427
Messages
6,124,831
Members
449,190
Latest member
rscraig11

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