Data validation with conditional list

Joined
Oct 29, 2015
Messages
42
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to apply a data validation list in Cell C2 which should apply if a condition is met. I have input the following formula:

=IF(B2<>"Disallowed","N/A",'Register'!$B$7#)

However rather than yield a result of "N/A" the cell value is showing as an item from the Register. (This is a drop down list that hides already used items).

I am not sure where I am going wrong here. Can anyone assist?
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
any spaces in the cell B2 with
"Disallowed"
"Disallowed "
" Disallowed"
 
Upvote 0
Data validation will not return a value to the cell, it will only affect what is allowed to be entered.
 
Upvote 0
Data validation will not return a value to the cell, it will only affect what is allowed to be entered.
Understood. However I am trying to apply a precondition so that if a condition is not met the cell populates with an automatic "N/A", if it is met then it looks to the Register to as a data validation list to find a unique reference number that has not already been applied. When I remove the above formula and insert it into the cell itself it works correctly.

I have inserted Column B helper to give true or false if a condition is met.

=IF(B2="True",'Disallowed Cost Register'!$B$7#)

As you say if the cell = "False" then the data validation does not apply.

The only other workaround, whilst not ideal would be to conditionally format the column / black out the text. Are there any potential workarounds without having to use a VBA?
 
Upvote 0
Understood. However I am trying to apply a precondition so that if a condition is not met the cell populates with an automatic "N/A"
Yes, but as I said, DV will not do that.

Realistically, I suspect you will need VBA, which is often the case with conditional data validation. For example, in this situation, if B2 were to change value, you would still have the old value in your DV cell, even though that is now invalid.
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,139
Members
453,021
Latest member
Justyna P

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