Unique Filter Not Working

garypea123

Board Regular
Joined
Mar 16, 2020
Messages
221
Office Version
  1. 365
Platform
  1. Windows
Good Evening,

Unfortunately I do not have XL2BB and cannot download.

Possibly just a tired mind but I am having an issue with my filter not creating a unique reference only.

What I would like ideally is for the filter to bring only anything which is in Pick (Column K) but I do not want a duplicate entry in from Column L.

As you can see below Order 1 is appearing twice, but I would only want one showing (with no duplicate entries)

Can anyone offer any advise, I tried to add another parameter but do not know

Unique.PNG
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I think I have fixed it anyway. It creates the reference as Column O should be the same. So if 128 appears in 1st Order, then logic is that 128 should appear in the second instance. Any deviation to values will mean it will create a reference
 
Upvote 0
How about
Excel Formula:
=FILTER(J2:O100,(K2:K100=C2)*(MMULT((SEQUENCE(99)>=SEQUENCE(,99))*(L2:L100=TRANSPOSE(I2:I100)),SEQUENCE(99,,,0)))=1,"")
 
Upvote 0
Thank you Fluff, It works but the formula makes no sense to me :) (Would not know where to begin with that one) .

I have a fix in place for mine which I hope will not fall (but one which I understand)

Would love to learn more in terms of your formula. Hopefully there are some books around.
 
Upvote 0
There's a typo in the formula & it should be
Excel Formula:
=FILTER(J2:O100,(K2:K100=C2)*(MMULT((SEQUENCE(99)>=SEQUENCE(,99))*(L2:L100=TRANSPOSE(L2:L100)),SEQUENCE(99,,,0)))=1,"")
The MMULT function is doing the same as if you put
Excel Formula:
=COUNTIFS(L$2:L2,L2)
in P2 & dragged down, so the filter only picks up the 1st instance of each order number
 
Upvote 0
Solution

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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