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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Let column A of Sheet1 houses the data.

David
David
JackJack
DavidAngelica
JackPeter
Angelica
Peter

<tbody>
</tbody>

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,216,562
Messages
6,131,422
Members
449,651
Latest member
Jacobs22

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