Filter with include condition is unique values

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
343
Office Version
  1. 365
Platform
  1. Windows
Let say i need to filter range column A:D. for my include condition should be Unique values from column C..

if we apply that in formula (that doesn't work)
= FILTER(A:D,Unique(C:C))

What could be the correct formula?

Many Thanks
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
can you give an example as the row - will NOT be unique
for example
ROW 1 and ROW 4 has the same entry in C - 1

Book4
ABCD
1a11s
2bb22s
3c312s
4d41s
Sheet1


BUT row 1 and row 4 is NOT unique in all the entries
so which ROW do you want to retain out of row 1 or row4, and NOT sure how to do that for excel to know

i think this is why you are getting value errors, i'm too and cant see a why around it

BUT if all the entries in row 1 and 4 cells where the same, so the row is duplicated , then you can filter OUT the duplicates

=UNIQUE(FILTER(A1:D4,A1:A4<>""))

BUT that removes ROW1 and ROW4


Book4
ABCDEFGHIJK
1a11sa11s
2bb22sbb22s
3c312sc312s
4a11s
Sheet1
Cell Formulas
RangeFormula
H1:K3H1=UNIQUE(FILTER(A1:D4,A1:A4<>""))
Dynamic array formulas.


I dont know how to filter based on column C
you can remove both the rows for duplicates based on column C

so ROW1 and ROW4 would not appear in the filtered data at all

=UNIQUE(FILTER(A1:D4,(COUNTIF(C1:C4,C1:C4)=1)))

Book4
ABCDEFGHIJK
1a11sbb22s
2bb22sc312s
3c312s
4d41s
Sheet1
Cell Formulas
RangeFormula
H1:K2H1=UNIQUE(FILTER(A1:D4,(COUNTIF(C1:C4,C1:C4)=1)))
Dynamic array formulas.
 
Upvote 0
can you give an example as the row - will NOT be unique
for example
ROW 1 and ROW 4 has the same entry in C - 1

Book4
ABCD
1a11s
2bb22s
3c312s
4d41s
Sheet1


BUT row 1 and row 4 is NOT unique in all the entries
so which ROW do you want to retain out of row 1 or row4, and NOT sure how to do that for excel to know

i think this is why you are getting value errors, i'm too and cant see a why around it

BUT if all the entries in row 1 and 4 cells where the same, so the row is duplicated , then you can filter OUT the duplicates

=UNIQUE(FILTER(A1:D4,A1:A4<>""))

BUT that removes ROW1 and ROW4


Book4
ABCDEFGHIJK
1a11sa11s
2bb22sbb22s
3c312sc312s
4a11s
Sheet1
Cell Formulas
RangeFormula
H1:K3H1=UNIQUE(FILTER(A1:D4,A1:A4<>""))
Dynamic array formulas.


I dont know how to filter based on column C
you can remove both the rows for duplicates based on column C

so ROW1 and ROW4 would not appear in the filtered data at all

=UNIQUE(FILTER(A1:D4,(COUNTIF(C1:C4,C1:C4)=1)))

Book4
ABCDEFGHIJK
1a11sbb22s
2bb22sc312s
3c312s
4d41s
Sheet1
Cell Formulas
RangeFormula
H1:K2H1=UNIQUE(FILTER(A1:D4,(COUNTIF(C1:C4,C1:C4)=1)))
Dynamic array formulas.
Thanks man.. for the row1 and 4. Either 1 of them should appear because in my row values they are duplicate.
(A1:D1 and A4:D4 are duplicate)
 
Upvote 0
ok, so as shown above then

=UNIQUE(FILTER(A1:D4,A1:A4<>""))
I hve put a range , as referring to just the column is over 1million rows and can slow things down
just make it range you want exceed

hence the <>"" so it only filters rows with data in column A
=UNIQUE(FILTER(A1:D1000,A1:A1000<>""))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,885
Messages
6,175,181
Members
452,615
Latest member
bogeys2birdies

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