List With Only Unique Records

CarlMurphy

New Member
Joined
Jul 13, 2010
Messages
1
Hey Guys,

I need to create a drop down list (Data > Validation) which only shows unique records from a column.

For example say I have a list of everybody who has borrowed a laptop in column B, then the drop down menu should only have each name once. In the list below I would like the name John Smith to only show once.

User
John Smith
James McBride
Edward Patterson
John Smith

Please could you let me know whether this is possible.

Thanks

Carl
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi & welcome to the Board!

Have a look at the methods outlined in http://www.mrexcel.com/forum/showthread.php?t=8485<input id="gwProxy" type="hidden"><!--Session data--><input *******="if(typeof(jsCall)=='function'){jsCall();}else{setTimeout('jsCall()',500);}" id="jsProxy" type="hidden"><input id="gwProxy" type="hidden"><!--Session data--><input *******="if(typeof(jsCall)=='function'){jsCall();}else{setTimeout('jsCall()',500);}" id="jsProxy" type="hidden">
 
Upvote 0
Say your list is in A2:A5. In B2 enter:

=IF(COUNTIF(A$2:A2,A2)=1,ROW(A1)-ROW(A$1)+1,"")

and copy down. In C1 enter:

=IF(ROW(A1)-ROW(A$1)+1>COUNT(B$2:B$5),"",INDEX(A$2:A$5,SMALL(B$2:B$5,1+ROW(A1)-ROW(A$1))))

and copy down. Choose Insert|Name|Define and create the name List that refers to:

=OFFSET(Sheet1!$C$2,0,0,COUNTA(Sheet1!$C$2:$C$5)-COUNTBLANK(Sheet1!$C$2:$C$5),1)

Now set your Data Validation to Allow List, Source =List.
 
Upvote 0

Forum statistics

Threads
1,225,156
Messages
6,183,238
Members
453,152
Latest member
ChrisMd

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