Create a list box of unique values

ChrisEngland

New Member
Joined
Nov 7, 2018
Messages
3
Can anyone help please?

I have a column A in my worksheet which has a list of user name names and a column B which has a value against each user. Each user will appear several times in column A

I would like to create a list box which just holds the unique names from column A but I'm struggling!

I have found a suggestion via Google but it end in e reference error and I'm struggling to understand why. The formula I'm using to populate the source of a list box is:

=OFFSET(Sheet1!$A$2, 0, 0, COUNT(IF(Sheet1!$A$1:$A$1000=””, "", 1)), 1)

Could anyone shed any light on what I'm doing wrong please?

Thanks

Chris
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
I managed to resolve this using the following formula to create a list starting at AA2 which I used for the list box source

=INDEX($A$2:$A$9999, MATCH(0,COUNTIF($AA$1:AA1, $A$2:$A$9999), 0))

(Ctrl, shift, Enter) then drag the cell at AA2 down to get the unique list

Works a treat
 
Upvote 0

Forum statistics

Threads
1,217,344
Messages
6,136,015
Members
449,977
Latest member
altizerc2196

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