Unique name list

Salamullah

Board Regular
Joined
Mar 28, 2011
Messages
221
Hi

I know pivot table can bring the result but I need formula to bring unique name list in column B from list of Names in column A, please share any formula

Column A

John
Ben
John
Ben
Ben
John
Peter
Peter

Column B
John
Ben
Peter
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
How about


Excel 2013/2016
AB
1District
2St AlbansSt Albans
3St AlbansWelwyn Hatfield
4St AlbansDacorum
5St AlbansSomercotes
6St Albans
7Welwyn Hatfield
8Welwyn Hatfield
9Welwyn Hatfield
10Welwyn Hatfield
11St Albans
12St Albans
13St Albans
14St Albans
15Dacorum
16St Albans
17St Albans
18St Albans
19St Albans
20Somercotes
TB1
Cell Formulas
RangeFormula
B2=IFERROR(INDEX(A$2:A$20,MATCH(0,INDEX(COUNTIF(B$1:B1,A$2:A$20),0),0)),"")
 
Upvote 0
Does your data start in A2 & did you put the formula in B2?
 
Upvote 0
What is the first cell that contains the formula?
 
Upvote 0
In that case it needs to be
=IFERROR(INDEX(Q$11000:Q$14000,MATCH(0,INDEX(COUNTIF(BG$2:BG2,Q$11000:Q$14000),0),0)),"")
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,694
Members
448,979
Latest member
DET4492

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