How to copy the filter list in excel

%3CLINGO-SUB%20id%3D%22lingo-sub-2234826%22%20slang%3D%22en-US%22%3EHow%20to%20copy%20the%20filter%20list%20in%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2234826%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20an%20excel%20with%20list%20of%20names.%20I%20want%20to%20copy%20the%20unique%20names.%20To%20get%20unique%20names%2C%20I%20am%20using%20filters.%20Now%20how%20can%20copy%20the%20names%20showing%20up%20in%20filters%20drop%20down%20list%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ravikumarnv60_0-1616670457835.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F266967iF00E58E3921DD161%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ravikumarnv60_0-1616670457835.png%22%20alt%3D%22ravikumarnv60_0-1616670457835.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2234826%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20for%20web%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2234855%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20copy%20the%20filter%20list%20in%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2234855%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F999835%22%20target%3D%22_blank%22%3E%40ravikumarnv60%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet's%20say%20that%20your%20list%20of%20names%20is%20in%20A2%3AA100%2C%20and%20that%20you%20want%20to%20extract%20the%20unique%20names%20into%20cell%20D2%20and%20down.%3C%2FP%3E%0A%3CP%3EEnter%20the%20following%20formula%20in%20D2%20and%20confirm%20it%20with%20Ctrl%2BShift%2BEnter%20to%20save%20it%20as%20an%20array%20formula%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DIFERROR(INDEX(%24A%242%3A%24A%24100%2CMATCH(0%2CCOUNTIF(D%241%3AD1%2C%24A%242%3A%24A%24100)%2C0))%2C%22%22)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFill%20down%20as%20far%20as%20you%20want.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2234878%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20copy%20the%20filter%20list%20in%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2234878%22%20slang%3D%22en-US%22%3EIs%20there%20a%20way%20to%20just%20copy%20the%20list%20showing%20up%20in%20the%20filter%20drop%20down%20list%3F%3C%2FLINGO-BODY%3E
Occasional Contributor

I have an excel with list of names. I want to copy the unique names. To get unique names, I am using filters. Now how can copy the names showing up in filters drop down list?

 

ravikumarnv60_0-1616670457835.png

 

6 Replies

@ravikumarnv60 

Let's say that your list of names is in A2:A100, and that you want to extract the unique names into cell D2 and down.

Enter the following formula in D2 and confirm it with Ctrl+Shift+Enter to save it as an array formula:

 

=IFERROR(INDEX($A$2:$A$100,MATCH(0,COUNTIF(D$1:D1,$A$2:$A$100),0)),"")

 

Fill down as far as you want.

Is there a way to just copy the list showing up in the filter drop down list?

@ravikumarnv60 

No, there isn't

I have used your formula but i am getting the list with repeating values. I need all values without any duplicates

I am getting like below
Plant
Plant
Plant
Plant
Site
...
I need like below
Plant
Site
...


@ravikumarnv60 

Strange - it should work.

S0241.png

Do you have Microsoft 365? If so, you can use the new UNIQUE function - see Excel UNIQUE Function 

I was facing the same issue and this video helped me get my desired result:

 

Excel Magic Trick #244: Advanced Filter Extract To New Sheet (Word Criteria)

https://youtu.be/_KGqJLXJvgY

At first, it didn't work. I had to clear my filter for the Advanced Filter use all the data in the array.

 

Cheers!