Data Validation Dependent Drop Down 2 Criteria

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,516
Office Version
  1. 2016
Platform
  1. Windows
Hello Friends,

I am using the below formula in data validation to get the dependent drop down list

Code:
=OFFSET('SIZE ORDER'!$B$1,MATCH(A2,so_ref_no,0),0,COUNTIF(so_ref_no,A2),1)

I just want to add another criteria Match(C2,so_size

Please if anyone can add the 2nd criteria in the above formula

Regards,

Humayun
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
With lot of experiments I have come up with this formula

Code:
=OFFSET('SIZE ORDER'!$C$1,MATCH(1,(A2=so_ref_no)*(C2=so_article_name),0),0,COUNTIF(so_article_name,C2),1)


This seems to work fine. But when I reopen the file - the cell gets freeze. it does not allow the drop down list ??? :(


Any help would be appreciated....
 
Upvote 0
Hello friends,

still waiting for for someone to solve this for me :(
 
Upvote 0
Formula in POST # 3 does not seem to work fine....

Here is a sample data

[FONT=&quot]Row 1 > Heading[/FONT]
[FONT=&quot]Row 2 > Data

[/FONT]

[FONT=&quot]Total 3 Named Ranges
ref (a2:a10)
articlename (b2:b10)
size (c2:c10)[/FONT]


[FONT=&quot]REF # ARTICLE NAME SIZE[/FONT]
[FONT=&quot]414 DUVET 135 X 200 CM[/FONT]
[FONT=&quot]414 DUVET 140 X 200 CM[/FONT]
[FONT=&quot]414 DUVET 150 X 200 CM[/FONT]
[FONT=&quot]414 DUVET 160 X 200 CM[/FONT]
[FONT=&quot]414 PILLOW 70 X 80 CM[/FONT]
[FONT=&quot]414 PILLOW 80 X 80 CM[/FONT]
[FONT=&quot]414 PILLOW 90 X 80 CM[/FONT]
[FONT=&quot]414 PILLOW 100 X 80 CM[/FONT]
[FONT=&quot]414 PILLOW 60 X 40 CM[/FONT]
[FONT=&quot]
[/FONT]
[FONT=&quot]
Now in Sheet 2[/FONT]

[FONT=&quot]When I enter 414 in cell A2 a drop list appears in cell B2 showing article names
here is the formula

Code:
=OFFSET(Sheet1!$B$1,MATCH(A2,ref,0),0,COUNTIF(ref,A2),1)

Its working fine & I am able to select a value from the list.

[/FONT]

[FONT=&quot]Now all I want is another formula for cell C2 (in data validation) which shall give a drop down list which would be dependent on entries of cell A2 & B2[/FONT]
[FONT=&quot]
Any help would be appreciated.

Regards,

Humayun[/FONT]
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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