Oct 10 2019 03:30 AM
Hi all,
I have a list of names where some recur. I trying to find a formula that will create a list of all the names but without the duplicates. Does this exist?
Thanks so much
Drew
Oct 10 2019 04:00 AM
Oct 10 2019 04:01 AM
There are several ways you can extract the unique items from a list.
In case of Array Formula, assuming your list is in A2:A25, place this Array Formula which requires confirmation with Ctrl+Shift+Enter instead of Enter alone.
In C2
=IFERROR(INDEX($A$2:$A$25,MATCH(0,INDEX(IF($A$2:$A$25<>"",COUNTIF($C$1:C1,$A$2:$A$25)),0,0),0)),"")
Confirm with Ctrl+Shift+Enter and copy it down until you get blank cells.
Adjust the range referred in the formula as per your requirement.
You may also create a Dynamic Named Range and refer it in the formula instead of referring ranges.
If you plan to place the above formula in another column, don't forget to change the bold column letters in the above formula as per your formula column.
Please find the attached with Array Formula, Dynamic Array Formula and Pivot Table solutions to get a unique list of names.
Oct 10 2019 08:03 AM
My non-array version of that which was suggested by @Subodh_Tiwari_sktneer is:
=IFNA(LOOKUP(2,1/(
COUNTIF(A$2:A$25,">="&A$2:A$25)=AGGREGATE(14,6,
COUNTIF(A$2:A$25,">="&A$2:A$25)/(COUNTIF(C$1:C1,A$2:A$25)=0),ROW()-1)),
A$2:A$25),"")