Data validation - dependent list

hitarov

New Member
Joined
Jul 10, 2013
Messages
6
Dear all,

Please help me with below case:

B2 should be drop-down list based on the value in B1.
Example: If Function code is 901, the drop down list should contains 3 values: Warehouse, Transport, QC only.

sy5k.jpg


As we have ~100 function codes, formular with IF that I tried -> Data validation IF(B1="901",901,IF(B1="902",902 …. are not applicable.

I tried Excel Data Validation -- Dependent Lists but it didn't works.

Thank you very much.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
I have done this using named ranges and indirect formula

check if this helps - Creating a Dependent Validation Drop-down List

Hi TrumpExcel,

Thank you very much.
It works, just Ctrl + Shift + F3 didn't work for my Excel version (2010), is it your customized short cut?
However, with this solution we have to create hundreds of name range, just wonder if there's a better solution.

Thank you a lot for you reply.
 
Upvote 0
Hi TrumpExcel,

Thank you very much.
It works, just Ctrl + Shift + F3 didn't work for my Excel version (2010), is it your customized short cut?
However, with this solution we have to create hundreds of name range, just wonder if there's a better solution.

Thank you a lot for you reply.

Hi Hitarov,

Control + Shift + F3 is a default shortcut. If that is not working, you can go to Formulas-->Defined Names--> Create from selection.

Also, I could come up with the following way. First create a drop down list for Function Code.

Then use the following formula in data validation List for Function Name
=OFFSET($B$4,MATCH($B$1,$B$4:$B$17,0)-1,1,COUNTIF($B$4:$B$17,$B$1))

Hope this works fine!!
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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