data validation or specific value

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
2,005
Office Version
  1. 365
Platform
  1. Windows
using dependent validation, can you have a either a particular value or the dependent validation in the cell? I currently have a choice of two dependent validation lists but its not ideal. i am trying to make a model that inputs a certain value if one of the data val options is chosen but dependent drop downs for the remaining options? so, for example, the first validation list (Col A) contains A, B, C, D. If the user selects A, the adjacent cell in Col B should be blank. However, if they chose B, C, or D, they move on to the dependent validation list with other choices. The list formula for the current situation is = IF($C5="A",AList,Others) where AList is the value i want to have in D5 if option A is selected from the first drop down list, and if B,C,or D is selected, the list in named range Others is available.

ideally, i want a blank or hyphen to be inserted at D5 if A is chosen in the first list, or if B,C,or D are chosen, the user can then select from the list at Others. Can it be done? sort of like a list source formula:

=IF($C5="A"," - ",Others)
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
One approach is to rely on some helper cells to create the dependent list(s) that should be used for the dropdown options when either B, C, or D is selected. The helper formula is written to produce a blank when A is 1st chosen. While the blank is not actually "returned" to the 2nd choice cell (when A is the 1st choice), you could choose the blank from the dropdown list or simply ignore it since the cell already is blank.
MrExcel_20220805.xlsx
CDEFGH
41st choice2ndHelper
5Bdogcatdograbbit
6A 
7Cdogcatdograbbit
8Dcatcatdograbbit
9Brabbitcatdograbbit
10A 
11Ccatcatdograbbit
Sheet7
Cell Formulas
RangeFormula
F5:H5,F11:H11,F7:H9,F6,F10F5=IF($C5="A","",{"cat","dog","rabbit"})
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
C5:C11ListA,B,C,D
D5:D11List=$F5#
 
Upvote 0
Thanks for your suggestion KRice.
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,492
Members
448,967
Latest member
visheshkotha

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