How to make a Data Validation Dependent Drop Down List From the precedent Row?

Lacan

Board Regular
Joined
Oct 5, 2016
Messages
228
Office Version
  1. 365
Platform
  1. Windows
Hello Guys,

Have this massive extent List that would like to make a Data Validation Dependent Drop Down List from the precedent row.

Will give you a sample data with 4 examples to be very clear that what is the goal in order to choose from Data Validation Dependent Drop Down List from the precedent row.

Can you help me?

Thanks a lot.


Book1
BCDEFGHIJK
2BrickCenterCityNameBrickCenterCityName
3299 Lx - Amadora (MÁgua - Sul)CENTRO CLINICO AVENIDAAmadoraAnnaExample 1299 Lx - Amadora (MÁgua - Sul)CENTRO CLINICO AVENIDAAmadoraAnna
4299 Lx - Amadora (MÁgua - Sul)CENTRO CLINICO AVENIDAAmadoraAnna SimonExample 2300 Lx - Amadora (MÁgua - Sul)Clínica LAR MEDICOSamoucoAnna
5299 Lx - Amadora (MÁgua - Sul)CENTRO CLINICO AVENIDAAmadoraAladinExample 3301 Lx - Amadora (MÁgua - Sul)Clínica LAR JONHAmadoraLuzia
6299 Lx - Amadora (MÁgua - Sul)CENTRO CLINICO AVENIDAAmadoraSergeExample 4302 Lx - Amadora (MÁgua - Sul)Clínica MEDICA SALisboaPedro
7299 Lx - Amadora (MÁgua - Sul)CENTRO CLINICO AVENIDAAmadoraFernando
8299 Lx - Amadora (MÁgua - Sul)CENTRO CLINICO AVENIDAAmadoraBlyde
9299 Lx - Amadora (MÁgua - Sul)CENTRO CLINICO AVENIDAAmadoraDynom
10300 Lx - Amadora (MÁgua - Sul)CENTRO CLINICO AVENIDAAmadoraVenom
11300 Lx - Amadora (MÁgua - Sul)CENTRO CLINICO FRANKAmadoraYalan
12300 Lx - Amadora (MÁgua - Sul)Clínica LAR MEDICOSamoucoAnna
13300 Lx - Amadora (MÁgua - Sul)Clínica LAR MEDICOSamoucoCosta
14300 Lx - Amadora (MÁgua - Sul)Clínica LAR MEDICOSamoucoMaria
15300 Lx - Amadora (MÁgua - Sul)Clínica LAR MEDICOSamoucoCesar
16300 Lx - Amadora (MÁgua - Sul)Clínica LAR MEDICOSamoucoCarlos
17301 Lx - Amadora (MÁgua - Sul)HospitalAmadoraMaria
18301 Lx - Amadora (MÁgua - Sul)Clínica LAR JONHAmadoraJesus
19301 Lx - Amadora (MÁgua - Sul)Clínica LAR JONHAmadoraMaria
20301 Lx - Amadora (MÁgua - Sul)Clínica LAR JONHAmadoraLuzia
21301 Lx - Amadora (MÁgua - Sul)Clínica MEDICA SALisboaGuilherme
22302 Lx - Amadora (MÁgua - Sul)Clínica MEDICA SALisboaRogerio
23302 Lx - Amadora (MÁgua - Sul)Clínica MEDICA SALisboaPedro
24302 Lx - Amadora (MÁgua - Sul)Dr Peter SaSamoucoAlbino
25302 Lx - Amadora (MÁgua - Sul)Consultorio Dr KingLisboaFernando
Folha6



1581376174648.png
 
You copied just those G12 to K15 to another sheet? Why?

This won't work if you do the input on another sheet as all the INDIRECT statements are pointing to the wrong place.
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Have this massive List - just want to have a sheet with only data and another sheet to make data validation drop down menu List.

Do you think it is possible and it is too much effort?

Thanks.
 
Upvote 0
I'm surprised you're still pursuing this, given the recalculation time, but...

You could move data to a Data tab like this:

Lacan4.xlsx
BCDE
2AreaCentreCityName
3299 GothamAdams ClinicGothamJohn
4299 GothamAdams ClinicGothamSarah
5299 GothamAdams ClinicGothamSimon
6299 GothamAdams ClinicParisMargaret
7299 GothamAdams ClinicParisJames
8299 GothamFaith MedicalParisPeter
9299 GothamFaith MedicalGothamVanessa
10301 SherwoodFaith MedicalGothamSusan
11301 SherwoodFaith MedicalRomeGillian
12301 SherwoodHolby GeneralRomeAlex
13301 SherwoodHolby GeneralRomeJames
14302 XanaduHolby GeneralParisGary
15302 XanaduHolby GeneralGothamMichael
16302 XanaduClinic OssoParisThomas
17302 XanaduClinic OssoMilanThomas
Data


Then have a DVDropdown tab for the built list and data entry from dropdowns:

Lacan4.xlsx
BCDEFGHIJKLM
1$H$4:$H$6$I$4:$I$5$J$4:$J$4$K$4:$K$5ActiveAddress
2AreaCentreCityName$B$8$D$8$E$8$D$8$B$8
3301 SherwoodFaith MedicalCitySarahAreaCentreCityName
4Faith MedicalParisPeter299 GothamFaith MedicalRomeAlex
5Adams ClinicParisMargaret301 SherwoodHolby General James
6302 Xanadu   
7AreaCentreCityName    
8301 SherwoodHolby GeneralRomeJames    
9Faith MedicalGothamSusan    
10    
11    
12AreaCentreCityName    
13302 XanaduFaith MedicalParisThomas    
14    
15    
16    
17AreaCentreCityName    
18299 GothamHolby GeneralParisGary    
19    
20    
21    
DVDropdown
Cell Formulas
RangeFormula
H1:K1H1=CELL($M$1,H4)&":"&ADDRESS(COUNTIF(H$4:H$1000,"> ")+ROW(H$3),COLUMN())
I2I2=M2
J2:K2J2=ADDRESS(ROW(INDIRECT($L$2)),COLUMN(D$1))
L2L2=CELL($M$1)
M2M2=CHOOSE(MIN(INT(ROW(INDIRECT($L$2))+4)/5,3),CELL($M$1,B3),CELL(M1,B8),CELL($M$1,B13))
H4:H21H4=INDEX(Data!B$3:B$2500,MATCH(0,INDEX(COUNTIF(H$3:H3,Data!B$3:B$2500),),0))&""
I4:I21I4=IFERROR(INDEX(Data!C$3:C$2500,AGGREGATE(15,6,ROW(Data!C$3:C$2500)-ROW(Data!$C$2)/((Data!B$3:B$2500=INDIRECT(I$2))*(COUNTIF(I$3:I3,Data!C$3:C$2500)=0)),1)),"")
J4:J21J4=IFERROR(INDEX(Data!D$3:D$2500,AGGREGATE(15,6,ROW(Data!D$3:D$2500)-ROW(Data!$C$2)/((Data!C$3:C$2500=INDIRECT(J$2))*(Data!B$3:B$2500=INDIRECT(I$2))*(COUNTIF(J$3:J3,Data!D$3:D$2500)=0)),1)),"")
K4:K21K4=IFERROR(INDEX(Data!E$3:E$2500,AGGREGATE(15,6,ROW(Data!E$3:E$2500)-ROW(Data!$C$2)/((Data!D$3:D$2500=INDIRECT(K$2))*(Data!C$3:C$2500=INDIRECT(J$2))*(Data!B$3:B$2500=INDIRECT(I$2))*(COUNTIF(K$3:K3,Data!E$3:E$2500)=0)),1)),"")
Cells with Data Validation
CellAllowCriteria
D3:D5,D8:D10,D13:D15,D18:D20List=INDIRECT($I$1)
E3:E5,E8:E10,E13:E15,E18:E20List=INDIRECT($J$1)
F3:F5,F8:F10,F13:F15,F18:F20List=INDIRECT($K$1)
M1Listendereço,Address
B3,B8,B13,B18List=INDIRECT($H$1)
 
Upvote 0
Dear Toadstool,

Yes almost finishing it.

If close this project wouldn´t believe also.

As you said just put data in other sheet and create a DVDropdown tab

Think have everything ok however "Localidade" dropdown doesn´t work.

What is wrong in this formulas?

Thanks again Toadstool.

Book1
EFGHIJKLMNOPQRSTUVWXYZAA
1$U$4:$U$34$V$4:$V$10$W$4:$W$3$X$4:$X$3$Y$4:$Y$3ActiveENDEREÇO
2JAN$F$18$L$2$M$2$N$2$V$2$F$18
3Vendas PVPEvol %BrickCentroLocalidadeEspecialidadeNome
4AlterMercadoMSALTERMercadoGanho299 Lx - Amadora (MÁgua - Sul)CENTRO CLINICO AVENIDA   
5#N/A#N/A#N/A#N/A#N/A#N/A300 Lx - Amadora (MÁgua - Norte)CENTRO CLINICO SAO CRISTOVAO   
6#N/A#N/A#N/A#N/A#N/A#N/A301 Lx - Amadora (Venteira)Clínica LAR MEDICO / AMADORA   
7#N/A#N/A#N/A#N/A#N/A#N/A302 Lx - Amadora (Alfragide, ÁLivres)Clínica MEDICA OLIVENCA LDA   
8303 Lx - Amadora (Falagueira, VNova)Clínica POLICLINICA SANTA TERESA   
9MÊS304 Lx - Amadora (ESol)Consultorio DR. ALBINO ANTUNES   
10JAN308 Lx - Lisboa (Benfica - Sul)Consultorio DR. FERNANDO COSTA   
11309 Lx - Lisboa (Benfica - Norte)    
12310 Lx - Lisboa (Estrela)    
13311 Lx - Lisboa (COurique - Oeste)    
14312 Lx - Lisboa (COurique - Este)    
15313 Lx - Lisboa (Misericórdia)    
16314 Lx - Lisboa (SAntónio - Oeste)    
17315 Lx - Lisboa (SAntónio - Este)    
18 299 Lx - Amadora (MÁgua - Sul) CENTROLOCALIDADEESPECIALIDADENOMEN.ºSELCAT316 Lx - Lisboa (SMMaior)    
19CENTRO CLINICO SAO CRISTOVAO320 Lx - Lisboa (SVicente)    
20321 Lx - Lisboa (Campolide)    
21NOMEPRODUTOSUNS VALOROBSERVAÇÃO331 Lx - Lisboa (SDBenfica - Sul)    
22332 Lx - Lisboa (SDBenfica - Norte)    
23333 Lx - Lisboa (Carnide)    
24349 St - Seixal (Seixal, APPires, FFerro)    
25350 St - Seixal (Arrentela)    
26351 St - Seixal (Amora)    
27352 St - Seixal (Corroios)    
28353 St - Almada (Laranjeiro)    
29 300 Lx - Amadora (MÁgua - Norte)354 St - Almada (CPiedade)    
30355 St - Almada (Almada, Cacilhas, Pragal)    
31356 St - Almada (Feijó)    
32NOMEPRODUTOSUNS VALOROBSERVAÇÃO357 St - Almada (Caparica, Trafaria)    
33358 St - Almada (CCaparica)    
34359 St - Almada (ChCaparica, Sobreda)    
35
36
37
38
ANÁLISE
Cell Formulas
RangeFormula
U1:Y1U1=CELL($AA$1,U4)&":"&ADDRESS(COUNTIF(U$4:U$1000,"> ")+ROW(U$3),COLUMN())
E2E2=E10
V2V2=AA2
W2:Y2W2=ADDRESS(ROW(INDIRECT(($Z$2))),COLUMN(L$17))
Z2Z2=CELL($AA$1)
AA2AA2=CHOOSE(MIN(INT(ROW(INDIRECT($Z$2))+4)/5,3),CELL($AA$1,F18))
U4:U34U4=INDEX(Tabela3[Brick],MATCH(0,INDEX(COUNTIF(U$3:U3,Tabela3[Brick]),),0))&""
V4:V34V4=IFERROR(INDEX(Tabela3[Centro], AGGREGATE(15,6,ROW(Tabela3[Centro])-ROW(Tabela3[[#Headers],[Centro]])/((Tabela3[Brick]=INDIRECT(V$2))*(COUNTIF(V$3:V3,Tabela3[Centro])=0)),1)),"")
W4:W34W4=IFERROR(INDEX(Tabela3[Localidade],AGGREGATE(15,6,ROW(Tabela3[Localidade])-ROW(Tabela3[[#Headers],[Centro]])/((Tabela3[Centro]=INDIRECT(W$2))*(Tabela3[Brick]=INDIRECT(V$2))*(COUNTIF(W$3:W3,Tabela3[Localidade])=0)),1)),"")
X4:X34X4=IFERROR(INDEX(Tabela3[Especialidade],AGGREGATE(15,6,ROW(Tabela3[Especialidade])-ROW($C$2)/((Tabela3[Localidade]=INDIRECT(W$2))*(Tabela3[Centro]=INDIRECT(V$2))*(COUNTIF(X$3:X3,Tabela3[Especialidade])=0)),1)),"")
Y4:Y34Y4=IFERROR(INDEX(Tabela3[Nome],AGGREGATE(15,6,ROW(Tabela3[Nome])-ROW($C$2)/((Tabela3[Especialidade]=INDIRECT(X$2))*(Tabela3[Localidade]=INDIRECT(W$2))*(Tabela3[Centro]=INDIRECT(V$2))*(COUNTIF(Y$3:Y3,Tabela3[Nome])=0)),1)),"")
E5:E7E5=VLOOKUP(D5,INDIRECT($E$10),3,0)
F5F5=VLOOKUP(D6,INDIRECT($E$10),3,0)
G5:G7G5=VLOOKUP(D5,INDIRECT($E$10),4,0)
H5:H7H5=VLOOKUP(D5,INDIRECT($E$10),5,0)
I5:I7I5=VLOOKUP(D5,INDIRECT($E$10),6,0)
J5:J7J5=VLOOKUP(D5,INDIRECT($E$10),7,0)
F6:F7F6=VLOOKUP(D6,INDIRECT($E$10),3,0)
E18, E29E18=IFERROR(VLOOKUP(F18,MAT_NOV.18!$AA$7:$AB$37,2,0),"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F29Expression=SE($J31<0;1)textNO
F18,F40,F53,F65,F76,F87,F98,F109,F121,F132,F143,F155,F166,F177,F193,F204,F215,F226,F237,F248,F259,F271,F283,F294,F305,F316,F328,F339,F350,F361Expression=SE($J20<0;1)textNO
Cells with Data Validation
CellAllowCriteria
L30:L38List=INDIRETO(AP$17)
L20:L27List=INDIRETO(AP$17)
F18:J18List=INDIRETO($U$1)
L19List=INDIRETO($V$1)
M19List=INDIRETO($W$1)
E10List=DADOS_TABELAS!$D$2:$D$13
I10List=TAB_ORIGINAL!$D$3:$D$229
 
Upvote 0
Lacan,

I'm not seeing the names and tables for this new format sheet. If you want to dropbox me the workbook I'll take a look, otherwise I'm sorry but I can't assist further.
 
Upvote 0
Sure Toadstool.

How can I dropbox you the workbook?

Thanks again.
 
Upvote 0
I'm not sure how to tell you so I'l let you figure out some kind of file-sharing operation.
 
Upvote 0
Just remember,

Can send through e-mail Toadstool?

Thanks again.
 
Upvote 0
Lacan,
The forum administrators don't like events off-forum. You should be able to figure out how to use Dropbox or Google Drive to share your sheet.
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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