Make a Drop Down List ( the challenge is to create the name based on matching range to make it dropable by the indirect formula )

Lacan

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

Have this List and would like to make a Drop Down List.

1581108896946.png


My challenge is to create a matching range base on the name of the Local cell like example "299 Lx - Amadora (MÁgua - Sul)" so ca use in indirect formula but excel gives an error everytime.

Any suggestions please?

Thanks guys

Copy Data:

Book1
KLMNOP
2LocalShopLocalShop
3299 Lx - Amadora (MÁgua - Sul)AB
4299 Lx - Amadora (MÁgua - Sul)BC
5299 Lx - Amadora (MÁgua - Sul)CD
6299 Lx - Amadora (MÁgua - Sul)DE
7299 Lx - Amadora (MÁgua - Sul)EF
8300 Lx - Amadora (MÁgua - Norte)AA
9300 Lx - Amadora (MÁgua - Norte)BB
10300 Lx - Amadora (MÁgua - Norte)CC
11300 Lx - Amadora (MÁgua - Norte)DD
12300 Lx - Amadora (MÁgua - Norte)EE
13300 Lx - Amadora (MÁgua - Norte)FF
14301 Lx - Amadora (Venteira)AE
15301 Lx - Amadora (Venteira)FA
16301 Lx - Amadora (Venteira)KA
17301 Lx - Amadora (Venteira)LO
18301 Lx - Amadora (Venteira)MI
Lista Médicos All
 

Attachments

  • 1581108805431.png
    1581108805431.png
    39.1 KB · Views: 10

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
A named range cannot start with a number, nor must it have spaces.
So I will put the named range for the shops for each Local as follows:

299 Lx - Amadora (MÁgua - Sul) : Lx_299
300 Lx - Amadora (MÁgua - Norte) : Lx_300
301 Lx - Amadora (Venteira) : Lx_301

Eg:
1581140319732.png


1581140397498.png


1581140460430.png


__________________________________________________________________________________
So these would be the formulas for the validation list:
varios 07feb2020.xlsm
ABCDEF
1LocalShop299 Lx - Amadora (MÁgua - Sul)300 Lx - Amadora (MÁgua - Norte)301 Lx - Amadora (Venteira)
2301 Lx - Amadora (Venteira)ABAAAE
3BCBBFA
4CDCCKA
5DEDDLO
6EFEEMI
7FF
DropDown
Cells with Data Validation
CellAllowCriteria
A2List=$D$1:$F$1
B2List=INDIRECT(MID(A2,5,2)&"_"&LEFT(A2,3))

__________________________________________________________________________________
The above would look like this:
1581140619953.png

___________________________________________________________________________________
Attach my test file:
__________________________________________________________________________________
 
Upvote 0
Here is a way without worrying about named ranges or INDIRECT if you have the FILTER function (which I think you do have? Please update your 'Account details' so all members know what Excel & OS version(s) you are using)

The formula shown for P3 is entered in that cell only and the other results "spill" to any required cells below.
Data Validation is set up as 'List' as shown in column Q.

Lacan 2020-02-08.xlsm
KLMNOPQ
2LocalShopLocalShop
3299 Lx - Amadora (MÁgua - Sul)AB299 Lx - Amadora (MÁgua - Sul)ABCD
4299 Lx - Amadora (MÁgua - Sul)BCBC
5299 Lx - Amadora (MÁgua - Sul)CDCD
6299 Lx - Amadora (MÁgua - Sul)DEDE
7299 Lx - Amadora (MÁgua - Sul)EFEF
8300 Lx - Amadora (MÁgua - Norte)AA
9300 Lx - Amadora (MÁgua - Norte)BB
10300 Lx - Amadora (MÁgua - Norte)CC
11300 Lx - Amadora (MÁgua - Norte)DD
12300 Lx - Amadora (MÁgua - Norte)EE
13300 Lx - Amadora (MÁgua - Norte)FF
14301 Lx - Amadora (Venteira)AE
15301 Lx - Amadora (Venteira)FA
16301 Lx - Amadora (Venteira)KA
17301 Lx - Amadora (Venteira)LO
18301 Lx - Amadora (Venteira)MI
19
Sheet1
Cell Formulas
RangeFormula
P3:P7P3=FILTER(L3:L100,K3:K100=N3)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
Q3:Q4List=$P$3#



1581143150996.png
 
Upvote 0
Here is a way without worrying about named ranges or INDIRECT if you have the FILTER function (which I think you do have? Please update your 'Account details' so all members know what Excel & OS version(s) you are using)

The formula shown for P3 is entered in that cell only and the other results "spill" to any required cells below.
Data Validation is set up as 'List' as shown in column Q.

Lacan 2020-02-08.xlsm
KLMNOPQ
2LocalShopLocalShop
3299 Lx - Amadora (MÁgua - Sul)AB299 Lx - Amadora (MÁgua - Sul)ABCD
4299 Lx - Amadora (MÁgua - Sul)BCBC
5299 Lx - Amadora (MÁgua - Sul)CDCD
6299 Lx - Amadora (MÁgua - Sul)DEDE
7299 Lx - Amadora (MÁgua - Sul)EFEF
8300 Lx - Amadora (MÁgua - Norte)AA
9300 Lx - Amadora (MÁgua - Norte)BB
10300 Lx - Amadora (MÁgua - Norte)CC
11300 Lx - Amadora (MÁgua - Norte)DD
12300 Lx - Amadora (MÁgua - Norte)EE
13300 Lx - Amadora (MÁgua - Norte)FF
14301 Lx - Amadora (Venteira)AE
15301 Lx - Amadora (Venteira)FA
16301 Lx - Amadora (Venteira)KA
17301 Lx - Amadora (Venteira)LO
18301 Lx - Amadora (Venteira)MI
19
Sheet1
Cell Formulas
RangeFormula
P3:P7P3=FILTER(L3:L100,K3:K100=N3)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
Q3:Q4List=$P$3#



View attachment 6096

Works magic my friend.

However want to do a drop down dependendable list non repeated very simple in this case from "H2" reference cell:

Here is the data:

Book1
CDEFGHIJKL
2BioShopLocal299 Lx - Amadora (MÁgua - Sul)ShopLocal
3299 Lx - Amadora (MÁgua - Sul)AAUSA
4300 Lx - Amadora (MÁgua - Norte)BBUSA
5301 Lx - Amadora (Venteira)DFRANCE
6301 Lx - Amadora (Venteira)EEGERMAN
7301 Lx - Amadora (Venteira)FPORTUGAL
8301 Lx - Amadora (Venteira)AAPORTUGAL
9301 Lx - Amadora (Venteira)HSPAIN
10302 Lx - Amadora (Alfragide, ÁLivres)JSPAIN
11302 Lx - Amadora (Alfragide, ÁLivres)KHUNGRY
12302 Lx - Amadora (Alfragide, ÁLivres)LAFRICA
13302 Lx - Amadora (Alfragide, ÁLivres)GAFRICA
14303 Lx - Amadora (Falagueira, VNova)GGRUSSIA
15304 Lx - Amadora (ESol)GRUSSIA
16308 Lx - Lisboa (Benfica - Sul)TUK
Folha2


1581186481484.png


Thanks again.
 
Upvote 0
Works magic my friend.
Good news! And thanks for updating your account. :)

.. want to do a drop down dependendable list non repeated very simple in this case from "H2" reference cell:
I'm not sure what you want. Can you explain in more detail and perhaps give an example of results as well?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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