Dependent Drop Downs

NVRensburg

Board Regular
Joined
Jul 1, 2014
Messages
113
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello

I'm not really sure what terminology I'm needing, but based on some google searches, I'm assuming they are dependent drop downs.

So in sheet 1 I have the data. At the moment, they are coping and pasting the vendors they want to use, but I want to create sheet 2, where they can click from a drop down list, which will filter based on the selections from the previous column if that makes sense?

Sheet 1 information
Book1.xlsx
ABCD
1TradeSubtradeSubcontractorsContact
2DemolitionDemolitionAlaska Interiors Ltd - Demolition TabN/A
3DemolitioniDemoJames Rickit
4DemolitionMcMahonBrian Brown
5DemolitionMAC Group LtdAngus Mcdonald
6DemolitionToptobottomPete Walker
7DemolitionGreen GorillaJames Nguyen
8DemolitionJunk RunDavid Knight
9DemolitionKiwi Waste & RecyclingMatt Goddard
10DemolitionWaste Management LtdOffice
11DemolitionGreenWayYeong Lee
12DemolitionHazardous MaterialsAdvanced Environmental Services Kama Murray
13DemolitionGlen Henderson LtdRikki Jones
14DemolitionThe Agency Corp Ltd
15DemolitionAsbestos removalExcell Construction LimitedRaymond Excell
16DemolitionAsbestos testingProperty Risk NZ
17DemolitionWard DemolitionRandal Owles
18DemolitionNikau ContractorsMichael Stil
19DemolitionYakka Contracting LimitedBruce Levien
20DemolitionUnion DemolitionJoseph Capper
21DemolitionTBS FarnsworthDavid Leeson
22DemolitionSafety 1st RemovalsJohn Kerr
23DemolitionChemCareRob Beagle
24DemolitionATL GroupVanessa Deeney
25DemolitionMidland Environmental Ltd Vanessa Deeney
26DemolitionBurrel Demolition Alex Burrell
27DemolitionMidland Environmental Ltd Vanessa Deeney
28DemolitionAt Pace SolutionsFred Manuel
29ExcavationVuksich & Borich (NZ) LtdBruce McLean
30ExcavationPink BalugaGlenn Darrah
31ExcavationK Benson Contracting LtdClinton Okkers
32ExcavationContract Landscapes Ltd - CLLNick Rohilla
33ExcavationYakka Contracting LimitedBruce Levien
34ExcavationAuckland CivilBrad Potier
35ExcavationEarthco CivilBruce Whittaker
36ExcavationGleeson CivilNava Santharuban
37ExcavationActive ContractingMathew Butterfield & Andy Thorn
38ExcavationCivil & BuildJorge Santana
39ExcavationJWG Piling & Retaining LimitedKevin Jiang
40ExcavationDrainageScopic Drainage and Civil LtdCam Ward
41ExcavationGleeson CivilDerek Manning
42ExcavationHanlon Plumbing & DrainageJason Carr
43ExcavationExcavationFixed Cost Civil Ltd in liquidation
44ExcavationShoring / protection Grouting ServicesDavid Sharpe
45Excavation**
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:B2,C2:C45,D2Expression=SEARCH(alaska_,$C2)textYES


Sheet 2

Book1.xlsx
ABCD
1TradeSubtradeSubcontractorsContact
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Sheet2
 
I've managed to create a test sheet (had to remove some personal information) but perhaps this will help with what I'm trying to do?

https://docs.google.com/spreadsheet...ouid=108836213326186955199&rtpof=true&sd=true

So basically in the Quote Sheet, I want to select from the drop down lists, and as I move across, the other columns will only filter according to what was selected in the column before. I read that you can use "fakesheet" somewhere in the formula so that each column changes with the information as it changes.

I don't know how to get it to change by row....so in otherwords I want to create a quote with each row reflecting what I choose....if that makes sense?
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I've managed to create a test sheet (had to remove some personal information) but perhaps this will help with what I'm trying to do?

https://docs.google.com/spreadsheet...ouid=108836213326186955199&rtpof=true&sd=true

So basically in the Quote Sheet, I want to select from the drop down lists, and as I move across, the other columns will only filter according to what was selected in the column before. I read that you can use "fakesheet" somewhere in the formula so that each column changes with the information as it changes.

I don't know how to get it to change by row....so in otherwords I want to create a quote with each row reflecting what I choose....if that makes sense?
you're file requires a request for permission. Please set to anybody can read. Or look at what I posted prior to your last message (Post #10)

I don't know how to get it to change by row....so in otherwords I want to create a quote with each row reflecting what I choose....if that makes sense?
^Yes, that makes your question more difficult.
 
Upvote 0
OK I've changed the permissions, please let me know if you are able to access it now?
 
Upvote 0
Okay, this has it. I developed this using my workbook because I'm not really sure how yours is set up. But, i think this has all you need to apply the concept to your work.

The one thing that may trip you up is something I reported to the forum over a year ago. For some reason my version of 365 the data validation automatically de-duplicates drop down validation lists. So I don't have to clean that up, which make me creating this MUCH easier, although it was still a chore.

Another thing I'd caution you on. And sorry if you are already aware. if you have already picked a value in B and/or C and change any of the "parent" drop downs (A or B) the data is wrong until you update the remaining columns. I'd suggest a worksheet change event to delete the data in the other cells so the user knows to re-enter the data.

Book2.xlsm
ABCDEFGHIJK
1Column AColumn BColumn CCHOICE ACHOICE BCHOICE C
2ADNCMAWCHOICE A DV FORMULA:
3ADOADN=OFFSET($A$1,1,0,COUNTA($A$1:$A$44)-1,1)
4ADPBIAG
5AEQBABBBCCHOICE B DV FORMULA:
6AERBABBBC=OFFSET($A$1, 1/MAX(((($A$1:$A$44)=$E2))/ROW($A$1:$A$44))-1,1, SUM(--($A$1:$A$44=$E2)),1)
7AESBABBBC
8AFTBABBBCCHOICE C DV FORMULA:
9AFUBDBEBF=OFFSET($A$1, 1/MAX(((($A$1:$A$44)=$E2)*(($B$1:$B$44)=$G2))/ROW($A$1:$A$44))-1,2, SUM((($A$1:$A$44)=$E2)*(($B$1:$B$44)=$G2)),1)
10AFVBGBHBJ
11AGW
12AGX
13AGY
14AGZ
15BHAA
16BHAB
17BHAC
18BHAD
19BIAE
20BIAF
21BIAG
22BIAH
23BJAI
24BJAJ
25BJAK
26BJAL
27BJAM
28CKAN
29CKAO
30CKAP
31CKAQ
32CLAR
33CLAS
34CLAT
35CLAU
36CLAV
37CMAW
38CMAX
39CMAY
40CMAZ
41BABBBC
42BDBEBF
43BGBHBI
44BGBHBJ
45
Sheet1
Cells with Data Validation
CellAllowCriteria
E2:E10List=OFFSET($A$1,1,0,COUNTA($A$1:$A$44)-1,1)
G2:G10List=OFFSET($A$1, 1/MAX(((($A$1:$A$44)=$E2))/ROW($A$1:$A$44))-1,1, SUM(--($A$1:$A$44=$E2)),1)
I2:I10List=OFFSET($A$1, 1/MAX(((($A$1:$A$44)=$E2)*(($B$1:$B$44)=$G2))/ROW($A$1:$A$44))-1,2, SUM((($A$1:$A$44)=$E2)*(($B$1:$B$44)=$G2)),1)
 
Upvote 0
Okay, this has it. I developed this using my workbook because I'm not really sure how yours is set up. But, i think this has all you need to apply the concept to your work.

The one thing that may trip you up is something I reported to the forum over a year ago. For some reason my version of 365 the data validation automatically de-duplicates drop down validation lists. So I don't have to clean that up, which make me creating this MUCH easier, although it was still a chore.

Another thing I'd caution you on. And sorry if you are already aware. if you have already picked a value in B and/or C and change any of the "parent" drop downs (A or B) the data is wrong until you update the remaining columns. I'd suggest a worksheet change event to delete the data in the other cells so the user knows to re-enter the data.

Book2.xlsm
ABCDEFGHIJK
1Column AColumn BColumn CCHOICE ACHOICE BCHOICE C
2ADNCMAWCHOICE A DV FORMULA:
3ADOADN=OFFSET($A$1,1,0,COUNTA($A$1:$A$44)-1,1)
4ADPBIAG
5AEQBABBBCCHOICE B DV FORMULA:
6AERBABBBC=OFFSET($A$1, 1/MAX(((($A$1:$A$44)=$E2))/ROW($A$1:$A$44))-1,1, SUM(--($A$1:$A$44=$E2)),1)
7AESBABBBC
8AFTBABBBCCHOICE C DV FORMULA:
9AFUBDBEBF=OFFSET($A$1, 1/MAX(((($A$1:$A$44)=$E2)*(($B$1:$B$44)=$G2))/ROW($A$1:$A$44))-1,2, SUM((($A$1:$A$44)=$E2)*(($B$1:$B$44)=$G2)),1)
10AFVBGBHBJ
11AGW
12AGX
13AGY
14AGZ
15BHAA
16BHAB
17BHAC
18BHAD
19BIAE
20BIAF
21BIAG
22BIAH
23BJAI
24BJAJ
25BJAK
26BJAL
27BJAM
28CKAN
29CKAO
30CKAP
31CKAQ
32CLAR
33CLAS
34CLAT
35CLAU
36CLAV
37CMAW
38CMAX
39CMAY
40CMAZ
41BABBBC
42BDBEBF
43BGBHBI
44BGBHBJ
45
Sheet1
Cells with Data Validation
CellAllowCriteria
E2:E10List=OFFSET($A$1,1,0,COUNTA($A$1:$A$44)-1,1)
G2:G10List=OFFSET($A$1, 1/MAX(((($A$1:$A$44)=$E2))/ROW($A$1:$A$44))-1,1, SUM(--($A$1:$A$44=$E2)),1)
I2:I10List=OFFSET($A$1, 1/MAX(((($A$1:$A$44)=$E2)*(($B$1:$B$44)=$G2))/ROW($A$1:$A$44))-1,2, SUM((($A$1:$A$44)=$E2)*(($B$1:$B$44)=$G2)),1)

I think I failed to mention, the drop down values will automatically expand as you add new rows to the table.

NOTE: This is mostly (99%) from Leila Gharani's youtube video found here. I suggest you watch it for more explanation:
 
Upvote 0
Here are the formulas needed for your worksheets datavalidation. Must start in the DV in cell A6 on 'Quote Sheet' worksheet:
(Please read all of my comments in Post #15)
Dependent Drop Down Question.xlsx
ABC
6ExcavationDrainageSub 39
Quote Sheet
Cells with Data Validation
CellAllowCriteria
A6:A12List=OFFSET('Master Info'!$A$5,1,0,COUNTA('Master Info'!$A$5:$A$55)-1,1)
B6:B12List=OFFSET('Master Info'!$A$5, 1/MAX((('Master Info'!$A$5:$A$55=$A6))/ROW('Master Info'!$A$5:$A$55))-5,1, SUM(--('Master Info'!$A$5:$A$55=$A6)),1)
C6:C12List=OFFSET('Master Info'!$A$5, 1/MAX(((('Master Info'!$A$5:$A$55)=$A6)*(('Master Info'!$B$5:$B$55)=$B6))/ROW('Master Info'!$A$5:$A$55))-5, 2, SUM((('Master Info'!$A$5:$A$55)=$A6)*(('Master Info'!$B$5:$B$55)=$B6)), 1)
 
Upvote 0
Thanks so much, I'll work on that and see how I go.

Really appreciate your time and help with this!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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