Data Validation and Filter Function

ziza

New Member
Joined
Dec 19, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi,
I have two defined tables, table A und table B with a realtion 1:n.

I want that the users choose in table A a Id from table B which matches the A_ID. Just like in row 12 Hardcoded.

In row 4 I made it with the Filter Function but that doesn't work in the data validation dropdown.
I know the option with defined names but the final tables have too much rows for definining are named range for each.


do you may know a soulution?

Best
ziza

Test1 Kopie.xlsx
ABCDEFGHIJK
1
2Dropdown Should be like
3
4511123Test1
5Test4
6
7
8
9
10TableATable B
11A_IDChoose B_IDB_IDA_ID
12511123Dropdown Hardcoded=FILTER(t_B[B_ID];t_B[A_ID]=D12) in Data Validation not workingTest1511123
13511124Test2511124
14511125Test3511125
15Test4511123
16Test5511124
17Test6511125
18
19
Tabelle1
Cell Formulas
RangeFormula
E4:E5E4=FILTER(t_B[B_ID],t_B[A_ID]=D4)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
E12ListTest1;Test4
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
You could put your formula in (for instance) F12 & drag down & then refer to that for the DV
Fluff.xlsm
ABCDEFGHIJ
1
2
3
4
5
6
7
8
9
10TableATable B
11A_IDChoose B_IDB_IDA_ID
12511123Test1Test4Test1511123
13511124Test2Test5Test2511124
14 Test3511125
15Test4511123
16Test5511124
17Test6511125
Data
Cell Formulas
RangeFormula
F14,F12:G13F12=TRANSPOSE(FILTER($I$12:$I$17,$J$12:$J$17=D12,""))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
E12:E14List=F12#
 
Upvote 0
Solution
Hi, yes this works for the moment. Great. Thank you
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
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