List but with a twist...

kidmullet11

New Member
Joined
Oct 17, 2011
Messages
4
Hi guys

I have a raw data sheet with hundreds of rows all with standard column headers (date, product etc).
I want to be able to create a drop down list to chose one of the dates, products etc. but each of these metrics is repeated many times over in the data sheet.

If I create a drop down list referencing the columns as they are, it lists each month over and over again almost like a unique entry.
I know the easier way to create a drop down list is just to create a table with 12 unique references to Jan>Dec etc but is there a way I create a unique drop down list from my original raw data sheet as it stands?

Thanks!
 

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".
here's what I do.

create a new sheet to store the unique lists on:
in my code this new sheet is named "lists"

Code:
Sub Generate_lists()

With Worksheets("lists")
Range("A:A").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=.Range("A1"), Unique:=True
Range("B:B").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=.Range("B1"), Unique:=True
Range("C:C").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=.Range("C1"), Unique:=True
...
End With
End Sub

hth,
Ross
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,757
Members
448,991
Latest member
Hanakoro

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