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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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