Drop down list using unique but with changed number of rows

zinah

Active Member
Joined
Nov 28, 2018
Messages
353
Office Version
  1. 365
Platform
  1. Windows
Hi,

I was able to create a a data validation list by using UNIQUE, however, my rows may change whenever I update the template. Can anyone advise how can I change my current formula to consider the rows changes?

FilterDropDowns.xlsx
ABCDEFGHIJK
1
2TypeStyleSizeColorPriceGrayOrange
3T-ShirtBasicSGray14Blue
4T-ShirtBasicSBlue18White
5T-ShirtBasicMWhite17Black
6T-ShirtBasicMGray20Red
7T-ShirtBasicMBlack17Yellow
8T-ShirtRingerSRed19Pink
9T-ShirtRingerSYellow13Orange
10T-ShirtRingerMPink16
11T-ShirtRingerMRed13
12T-ShirtRingerMOrange10
13T-ShirtRingerLGray20
14T-ShirtRingerLBlue16
15T-ShirtFittedSWhite10
16T-ShirtFittedSGray15
17T-ShirtFittedLBlack12
18T-ShirtFittedLRed15
19T-ShirtFittedLYellow15
20T-ShirtV-NeckSPink20
21T-ShirtV-NeckSRed17
22T-ShirtV-NeckSOrange11
23T-ShirtV-NeckMGray20
24T-ShirtV-NeckMBlue12
25T-ShirtV-NeckLWhite18
26T-ShirtV-NeckLGray14
27HoodieBasicMBlack12
28HoodieBasicMRed10
29HoodieBasicLYellow11
30HoodieBasicLPink10
31HoodieBasicLRed12
32HoodieBasicXLOrange11
33HoodieBasicXLGray17
34HoodieZip UpMBlue15
35HoodieZip UpMWhite20
36HoodieZip UpMGray10
37HoodieZip UpLBlack12
38HoodieZip UpLRed11
39HoodieZip UpXLYellow15
40HoodieZip UpXLPink10
41HoodieZip UpXLRed16
42SweatshirtBasicSOrange20
43SweatshirtBasicSGray14
44SweatshirtBasicLBlue19
45SweatshirtBasicLWhite16
46SweatshirtBasicLGray19
47SweatshirtBasicXLBlack15
48SweatshirtBasicXLRed13
49
Sheet1
Cell Formulas
RangeFormula
I2:I9I2=UNIQUE(D3:D48)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
J2List=$I$2#
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
How about
Excel Formula:
=UNIQUE(FILTER(D3:D1000,D3:D1000<>""))
 
Upvote 0
How about
Excel Formula:
=UNIQUE(FILTER(D3:D1000,D3:D1000<>""))
That works perfectly great, however, in my real data, I need to include one blank option in my drop down list, how can I do that?

FilterDropDowns.xlsx
ABCDEFGHIJK
1
2TypeStyleSizeColorPriceGrayOrange
3T-ShirtBasicSGray14Blue
4T-ShirtBasicSBlue18White
5T-ShirtBasicMWhite17Black
6T-ShirtBasicMGray20Red
7T-ShirtBasicMBlack17Yellow
8T-ShirtRingerSRed19Pink
9T-ShirtRingerSYellow13Orange
10T-ShirtRingerMPink16
11T-ShirtRingerMRed13
12T-ShirtRingerMOrange10
13T-ShirtRingerLGray20
14T-ShirtRingerLBlue16
15T-ShirtFittedSWhite10
16T-ShirtFittedSGray15
17T-ShirtFittedLBlack12
18T-ShirtFittedLRed15
19T-ShirtFittedLYellow15
20T-ShirtV-NeckSPink20
21T-ShirtV-NeckSRed17
22T-ShirtV-NeckSOrange11
23T-ShirtV-NeckMGray20
24T-ShirtV-NeckMBlue12
25T-ShirtV-NeckLWhite18
26T-ShirtV-NeckLGray14
27HoodieBasicMBlack12
28HoodieBasicMRed10
29HoodieBasicLYellow11
30HoodieBasicLPink10
31HoodieBasicLRed12
32HoodieBasicXLOrange11
33HoodieBasicXLGray17
34HoodieZip UpMBlue15
35HoodieZip UpMWhite20
36HoodieZip UpMGray10
37HoodieZip UpLBlack12
38HoodieZip UpLRed11
39HoodieZip UpXLYellow15
40HoodieZip UpXLPink10
41HoodieZip UpXLRed16
42SweatshirtBasicSOrange20
43SweatshirtBasicSGray14
44SweatshirtBasicLBlue19
45SweatshirtBasicLWhite16
46SweatshirtBasicLGray19
47SweatshirtBasicXLBlack15
48SweatshirtBasicXLRed13
49SweatshirtBasicXL13
Sheet1
Cell Formulas
RangeFormula
I2:I10I2=IF(UNIQUE(D3:D49)=0,"",UNIQUE(D3:D49))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
J2List=$I$2#
 
Upvote 0
How about
Excel Formula:
=vstack("",UNIQUE(FILTER(D3:D1000,D3:D1000<>"")))
 
Upvote 1
Solution
How about
Excel Formula:
=vstack("",UNIQUE(FILTER(D3:D1000,D3:D1000<>"")))
Thanks a LOT! This works perfectly great and this is the first time I know about the
Excel Formula:
vstack
formula, thank you for your usual support!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,077
Messages
6,122,991
Members
449,094
Latest member
masterms

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