Dependant Drop Down Validation With Illegal Characters (&)

BigBlueBear

New Member
Joined
Apr 7, 2022
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hoping someone can help. Trying to use dependant drop downs where one set of data includes an ampersand (Excel illegal character). I can get everything to work apart from the dataset which includes Z&P in the primary dataset and have been unable to get this example to work either, even when i replicate the fruit example Easy Steps Excel Dependent Drop Down List Data Validation.

1649355384770.png


Any help would be really appreciated
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
@BigBlueBear Welcome
Might this help?
Name the Z&P list as "ZandP"
Then use the the blow =INDIRECT... statement to define the dependant DV list for column L.
Like.
Excel Formula:
=INDIRECT(SUBSTITUTE($K2,"&","and"))

Book1
ABCDEFGHIJKL
1Group PickNext Pick
2GroupCorporateZ&PFinanceOtherZ&PSales
3CorporateHOSalesControlLegalFinanceControl
4Z&PZ&P (HO)MarketingFinancetaxCorporateZ&P (HO)
5FinanceZ&P (Finance)DataOthertax
Sheet1
Cells with Data Validation
CellAllowCriteria
K2:K5List=Group
L2:L5List=INDIRECT(SUBSTITUTE($K2,"&","and"))
 
Upvote 0
Solution
@BigBlueBear, welcome to the Forum.
I just discussed a similar problem in this thread:
in this case, you only need 1 table so it's easier to maintain. And there's a part that shows how to deal with illegal character in named range.
 
Upvote 0
@BigBlueBear Welcome
Might this help?
Name the Z&P list as "ZandP"
Then use the the blow =INDIRECT... statement to define the dependant DV list for column L.
Like.
Excel Formula:
=INDIRECT(SUBSTITUTE($K2,"&","and"))

Book1
ABCDEFGHIJKL
1Group PickNext Pick
2GroupCorporateZ&PFinanceOtherZ&PSales
3CorporateHOSalesControlLegalFinanceControl
4Z&PZ&P (HO)MarketingFinancetaxCorporateZ&P (HO)
5FinanceZ&P (Finance)DataOthertax
Sheet1
Cells with Data Validation
CellAllowCriteria
K2:K5List=Group
L2:L5List=INDIRECT(SUBSTITUTE($K2,"&","and"))
Many thanks works a treat. Your help is very much appreciated :)
 
Upvote 0
@BigBlueBear, welcome to the Forum.
I just discussed a similar problem in this thread:
in this case, you only need 1 table so it's easier to maintain. And there's a part that shows how to deal with illegal character in named range.
Many thanks will have a look @ your post :)
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,293
Members
449,077
Latest member
Rkmenon

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