Data Validation Drop-Down List Reference in Another Sheet

miffy45

New Member
Joined
Dec 18, 2022
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Hello,

Could somebody help?
I have data in Sheet 'Reference' as per below:

A​
B​
1​
Category1​
Category2​
2​
Cat1.1​
Cat2.1​
3​
Cat1.2​
Cat2.2​


An in the other sheet named "Data Input", in column B for option i should have a drop-down refering a data in sheet 'reference' and the result depends on what i fill in column A in this sheet.
For example, if i fill Category1 in column A then the drop-down list in column B should be showing Cat1.1 and Cat1.2

A​
B​
1​
Category​
Option​
2​

I already seek for solution and most of it using Indirect function, but after i try it's only applicable if the reference data on the same sheet as the input column.

Thank you.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
There's a number of ways to do it. Personally, I would use a helper column on the Data Input sheet and use the Filter function (I note you have 365) like this:

Book1
AB
1Category1Category2
2Cat1.1Cat2.1
3Cat1.2Cat2.2
Reference


Book1
ABC
1CategoryOption
2Category2Cat2.1Cat2.1
3Cat2.2
Data Input
Cell Formulas
RangeFormula
C2:C3C2=FILTER(Reference!$A$2:$B$3,Reference!$A$1:$B$1='Data Input'!$A$2,"")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
A2List=Reference!$A$1:$B$1
B2List=C2#
 
Upvote 0
Hi Kevin,

Thank you for your answer.
I've tried with simple sample above and it worked, but i think it didn't applies to my condition later.

Since later the category in Data Input will be added until like 5-10 rows.
The filter will stacked and hard to maintain because the option will have numerous rows too.

Really appreciate for your fast response tho.
 
Upvote 0
Hi Kevin,

Thank you for your answer.
I've tried with simple sample above and it worked, but i think it didn't applies to my condition later.

Since later the category in Data Input will be added until like 5-10 rows.
The filter will stacked and hard to maintain because the option will have numerous rows too.

Really appreciate for your fast response tho.
I don't think it'll be as difficult as you imagine. Can you provide a sample of your actual data using the XL2BB add in (or share your file via Dropbox, Google Drive or similar) and I'll demonstrate?
 
Upvote 0
I don't think it'll be as difficult as you imagine.
This is what I mean...

Book1
ABCDEFGHIJ
1Category1Category2Category3Category4Category5Category6Category7Category8Category9Category10
2Cat1.1Cat2.1Cat3.1Cat4.1Cat5.1Cat6.1Cat7.1Cat8.1Cat9.1Cat10.1
3Cat1.2Cat2.2Cat3.2Cat4.2Cat5.2Cat6.2Cat7.2Cat8.2Cat9.2Cat10.2
4Cat1.3Cat2.3Cat3.3Cat4.3Cat5.3Cat6.3Cat7.3Cat8.3Cat9.3Cat10.3
5Cat1.4Cat2.4Cat3.4Cat4.4Cat5.4Cat6.4Cat7.4Cat8.4Cat9.4Cat10.4
6Cat1.5Cat2.5Cat3.5Cat4.5Cat5.5Cat6.5Cat7.5Cat8.5Cat9.5Cat10.5
7Cat1.6Cat2.6Cat3.6Cat4.6Cat5.6Cat6.6Cat7.6Cat8.6Cat9.6Cat10.6
8Cat1.7Cat2.7Cat3.7Cat4.7Cat5.7Cat6.7Cat7.7Cat8.7Cat9.7Cat10.7
9Cat1.8Cat2.8Cat3.8Cat4.8Cat5.8Cat6.8Cat7.8Cat8.8Cat9.8Cat10.8
10Cat2.9Cat3.9Cat4.9Cat5.9Cat6.9Cat7.9Cat8.9Cat9.9Cat10.9
11Cat2.10Cat3.10Cat4.10Cat5.10Cat8.10Cat9.10Cat10.10
12Cat2.11Cat3.11Cat4.11Cat5.11Cat8.11Cat9.11Cat10.11
13Cat3.12Cat4.12Cat5.12Cat8.12Cat9.12Cat10.12
14Cat3.13Cat4.13Cat5.13Cat8.13Cat9.13Cat10.13
15Cat3.14Cat4.14Cat5.14Cat8.14Cat9.14Cat10.14
16Cat3.15Cat4.15Cat5.15Cat8.15Cat9.15Cat10.15
17Cat3.16Cat4.16Cat5.16Cat8.16Cat9.16Cat10.16
18Cat3.17Cat4.17Cat5.17Cat8.17Cat9.17Cat10.17
19Cat3.18Cat4.18Cat5.18Cat8.18Cat9.18Cat10.18
20
21
22
23
24
25
Reference


Book1
ABC
1CategoryOption
2Category9Cat9.2Cat9.1
3Cat9.2
4Cat9.3
5Cat9.4
6Cat9.5
7Cat9.6
8Cat9.7
9Cat9.8
10Cat9.9
11Cat9.10
12Cat9.11
13Cat9.12
14Cat9.13
15Cat9.14
16Cat9.15
17Cat9.16
18Cat9.17
19Cat9.18
20
21
Data Input
Cell Formulas
RangeFormula
C2:C20C2=UNIQUE(FILTER(Reference!$A$2:$J$25,Reference!$A$1:$J$1='Data Input'!$A$2))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
A2List=Reference!$A$1:$J$1
B2List=C2#


You can even hide the column with the returned options.
Book1
ABD
1CategoryOption
2Category9Cat9.2
3
4
Data Input
Cells with Data Validation
CellAllowCriteria
A2List=Reference!$A$1:$J$1
B2List=C2#
 
Upvote 0
Select B2:B10 (or as required) in reference sheet. Formula for DV.
Excel Formula:
=OFFSET('Data Input'!$A$2,0,MATCH($A2,'Data Input'!$A$1:$G$1,0)-1,COUNTA(INDEX('Data Input'!$A$1:$G$20,,MATCH($A2,'Data Input'!$A$1:$G$1,0)))-1)
Adjust the ranges as required.
 
Upvote 0
Hi Kevin,

Thank you for the explanation and sample.
Then how do you done for the 2nd row? in Data Input Sheet.

Is Cell B3 and C3 have same formula?
I got stuck with this one, since i cannot do this in Cell C3 due to cell occupied from C2 filter result.
untitled-png.90002


RangeFormula
Cell Formulas
C2:C20C2=UNIQUE(FILTER(Reference!$A$2:$J$25,Reference!$A$1:$J$1='Data Input'!$A$2))
Dynamic array formulas.

Kindly tell me if there's anything wrong with what i'm doing?
Sorry currently i cannot upload the file with drive, drive error.
 

Attachments

  • Untitled.png
    Untitled.png
    41.6 KB · Views: 42
  • 1681890731338.png
    1681890731338.png
    37.4 KB · Views: 19
Upvote 0
If you wanted to add additional Categories down column A, and still use the same methodology, then you would need to add additional 'help' columns along the sheet. Like this:

miffy45.xlsx
ABCDE
1CategoryOption
2Category9Cat9.2Cat9.1Cat6.1Cat10.1
3Category6Cat6.4Cat9.2Cat6.2Cat10.2
4Category10Cat10.3Cat9.3Cat6.3Cat10.3
5Cat9.4Cat6.4Cat10.4
6Cat9.5Cat6.5Cat10.5
7Cat9.6Cat6.6Cat10.6
8Cat9.7Cat6.7Cat10.7
9Cat9.8Cat6.8Cat10.8
10Cat9.9Cat6.9Cat10.9
11Cat9.100Cat10.10
12Cat9.11Cat10.11
13Cat9.12Cat10.12
14Cat9.13Cat10.13
15Cat9.14Cat10.14
16Cat9.15Cat10.15
17Cat9.16Cat10.16
18Cat9.17Cat10.17
19Cat9.18Cat10.18
2000
21
Data Input
Cell Formulas
RangeFormula
C2:C20C2=UNIQUE(FILTER(Reference!$A$2:$J$25,Reference!$A$1:$J$1='Data Input'!$A$2))
D2:D11D2=UNIQUE(FILTER(Reference!$A$2:$J$25,Reference!$A$1:$J$1='Data Input'!$A$3))
E2:E20E2=UNIQUE(FILTER(Reference!$A$2:$J$25,Reference!$A$1:$J$1='Data Input'!$A$4))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
A2:A4List=Reference!$A$1:$J$1
B2List=C2#
B3List=D2#
B4List=E2#


As I mentioned earlier, you can always hide those helper columns if you wish.
 
Upvote 0
Solution
Hi Kevin,

Ok, it's do-able for now.

Thank you for your time and insights!
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,174
Members
452,615
Latest member
bogeys2birdies

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