Dynamic List & Named Ranges

DipDip

Board Regular
Joined
Jan 23, 2015
Messages
76
Office Version
  1. 2016
Platform
  1. Windows
Hi all,
Just wondering if someone can help me with something. I have the following data:
[TABLE="class: grid, width: 50, align: left"]
<tbody>[TR]
[TD]Name[/TD]
[/TR]
[TR]
[TD]f[/TD]
[/TR]
[TR]
[TD]a[/TD]
[/TR]
[TR]
[TD]t[/TD]
[/TR]
[TR]
[TD]c[/TD]
[/TR]
[TR]
[TD]t[/TD]
[/TR]
[TR]
[TD]d[/TD]
[/TR]
[TR]
[TD]a[/TD]
[/TR]
[TR]
[TD]e[/TD]
[/TR]
[TR]
[TD]f[/TD]
[/TR]
</tbody>[/TABLE]
What I want is for a list to be populated elsewhere in the worksheet which gives me only unique values.

I have used the following formula:

Code:
{=INDEX(List,MATCH(SMALL(IF(COUNTIF($E$1:E1,List)=0,COUNTIF(List,"<"&List),""),1),COUNTIF(List,"<"&List),0))}

BUT the range I have for the named data List is as follows:
Code:
=OFFSET(Data!$A$2, 0, 0, COUNTA(Data!$A:$A)-1,1)

Because I need the list to be dynamic for a Userform combobox I have created that uses this list and also as more data is added to Column A, I don't want to be having to alter the code all the time.

These two combinations don't work, all it does is give me the first value.

Can anyone please help me?

Thanks in advance peeps!
 
Last edited:
There is nothing entered below A10. I must be missing something somewhere. Just not sure where. Let me quickly try on a new sheet as opposed to the one I have been working on... BRB

I have gotten your results ("a" on every cell) with a blank cell in the middle of your data. So, please check carefully.

M.
 
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,223,981
Messages
6,175,767
Members
452,668
Latest member
mrider123

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