Define name is name manager without duplicate

proexcel

New Member
Joined
Apr 29, 2017
Messages
14
Hello to all
I have this names in one column
David
Jack
David
Jack
Angelica
Peter
I want to write a formula in name manager that automatically remove duplicate names and give me a unique list with offset formula, I mean that I want to automatically increase or decrease the length of the list with add name or remove it but unique list without reputation.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Let column A of Sheet1 houses the data.

[TABLE="class: grid, width: 128"]
<tbody>[TR]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 64, bgcolor: transparent, align: right"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]
David
[/TD]
[TD="bgcolor: transparent"]David[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Jack[/TD]
[TD="bgcolor: transparent"]Jack[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]David[/TD]
[TD="bgcolor: transparent"]Angelica[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Jack[/TD]
[TD="bgcolor: transparent"]Peter[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Angelica[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Peter[/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]

1. Define Names in the Formula Manager as referring to:
Rich (BB code):
=Sheet1!$A$2:INDEX(Sheet1!$A:$A,MATCH(REPT("z",255),Sheet1!$A:$A))
2. Define Ivec in the Formula Manager as referring to:
Rich (BB code):
=ROW(Names)-ROW(INDEX(Names,1,1))+1
3. Define DistinctNamesCount in the Formula Manager as referring to:
Rich (BB code):
=SUM(IF(FREQUENCY(IF(1-(Names=""),MATCH(Names,Names,0)),Ivec),1))
4. In B2 control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IF(ROWS($B$2:B2)>DistinctNamesCount,"",
    INDEX(Names,SMALL(IF(FREQUENCY(IF(1-(Names=""),MATCH(Names,Names,0)),Ivec),Ivec),
    ROWS($B$2:B2))))
5. Define DistinctNames in the Formula Manager as referring to:
Rich (BB code):
=OFFSET(Sheet1!$B$2,0,0,DistinctNamesCount)
The latter gives you what you are asking for.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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