Count unique multiple values once with criteria

L

Legacy 469343

Guest
Hi! What formula do I need to count a PO once if all the items of one PO have been delivered (marked X)?

P.S.: Unfortunately I'm on my office PC, so XL2BB cannot be downloaded...
 

Attachments

  • 1.png
    1.png
    11.3 KB · Views: 15

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Try this:

varios 19jun2021.xlsm
ABCDE
3CompanyPOItemDeliveredComplete
4comp111XYes
5comp221XNo
6comp222X 
7comp223 
8comp224 
9comp225 
10comp331XYes
11comp332X 
12comp333X 
13comp334X 
14comp335X 
15comp336X 
Hoja6
Cell Formulas
RangeFormula
E4:E15E4=IF(COUNTIF($B$4:$B$15,B4)=COUNTIF(B4:$B$15,B4),IF(COUNTIF($B$4:$B$15,B4)=COUNTIFS($B$4:$B$15,B4,$D$4:$D$15,"X"),"Yes","No"),"")
 
Upvote 0
I came up with this formula: =SUM(--(FREQUENCY(IF(Table1[Delivered]="X",MATCH(Table1[PO],Table1[PO],0)),ROW(Table1[PO])-ROW(B4)+1)>0))

But this counts a PO once if one item has a X behind it. I want it only to count if ALL items have an X behind it
 
Last edited by a moderator:
Upvote 0
What do you mean by 'count'? Where will this 'count' go?
There are 3 companies, all with one PO number, but all with different item amounts. So if all items would have an X behind them, 3 PO’s need to be the outcome
 
Upvote 0
Sorry, based on my example, do you want a 2 in cell B2?

varios 19jun2021.xlsm
ABCD
1PosDel Po
232
3CompanyPOItemDelivered
4comp111X
5comp221X
6comp222X
7comp223X
8comp224
9comp225
10comp331X
11comp332X
12comp333X
13comp334X
14comp335X
15comp336X
Hoja6
 
Upvote 0

Forum statistics

Threads
1,215,065
Messages
6,122,944
Members
449,095
Latest member
nmaske

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