Unique Filtering Needs

meppwc

Well-known Member
Joined
May 16, 2003
Messages
604
Office Version
  1. 365
Platform
  1. Windows
I have a worksheet with data in 10,000 rows
Some of the data in column A is duplicated and some are unique.

I am trying to create a filter on this data and am struggling
I need to be able to list all records that are unique in column A
In addition to
Any duplicate value in column A where column G is NOT blank.

Any assistance greatly appreciated
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Are you willing to use a helper column? You could do something like:
=IF(INDIRECT(ADDRESS(ROW(),1))="","",IF(COUNTIF(A:A,INDIRECT(ADDRESS(ROW(),1)))>1,IF(ADDRESS(MATCH(INDIRECT(ADDRESS(ROW(),1)),A:A,0),1)=ADDRESS(ROW(),1),INDIRECT(ADDRESS(ROW(),1)),""),INDIRECT(ADDRESS(ROW(),1))))
and expand that down into all rows of your helper column. It will list all unique values within column A as well as the first instance of a duplicate value. This will not ignore spaces, so "Jerry" and "Jerry " will both show up because one has a space at the end. It is not case-sensitive.
 
Upvote 0
As much as I appreciate the effort you must have put into this formula, it is not providing what I need. Based on what I said in my original post, I need to see all of that data in each row that applies (if that makes sense). So it would seem that once I take into account removing duplicates that do not have data in column G, these should be far less than 10,000 rows of data
 
Upvote 0
in Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    tbl1 = Table.AddIndexColumn(Source,"Index"),
    tbl2 = Table.SelectRows(tbl1, each (List.PositionOf(tbl1[Column1], _[Column1]) = _[Index] or _[Column7]<>null)),
    Result = Table.RemoveColumns(tbl2,{"Index"})
in
    Result

Note for PQ to work your data would need to be a formal excel table (I used a Table named "Table1"). Change "Table1" in the code above to your table name. Also It assumes the data in column A has Header "Column1" and in col G it is "Column7". Change the three occurences of Column1 and Column7 to your column headers.

Book1
ABCDEFGHIJKLMNOP
1Column1Column2Column3Column4Column5Column6Column7Column1Column2Column3Column4Column5Column6Column7
2A4332341757TA4332341757T
3B601415537TB601415537T
4C321423818C321423818
5D4439504015D4439504015
6A4930522256TA4930522256T
7B115158959TB115158959T
8C2524362729B25335426T
9D628234512C204816733T
10A4719135410D81446531T
11B25335426T
12C204816733T
13D81446531T
14
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,262
Members
449,075
Latest member
staticfluids

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