Data validation Alert

Polanskiman

Board Regular
Joined
Nov 29, 2011
Messages
119
Office Version
  1. 365
  2. 2016
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
  2. MacOS
  3. Mobile
Hello,

Here is a simplified set of data. As you can see there is one dropdown list that will list values from the list1 or list2 depending whether there are values or not in I12 and/or J12 cells.

All works fine. Only issue is if I delete values from I12 and J12 and then go to the DataValidation and confirm the DataValidation I get an Alert saying the following:

VBA Code:
The list source must be a delimited list, or a reference to single row or column.

This does not happen if there is a value in either I12 or J12 and proceed to DataValidation and do the same procedure.

Why is this happening?

Book1
HIJKLMN
6
7DropDown list
8maybe
9List1List2
10yesyes
11Value 1Value 2nono
12maybe
13
Sheet1
Cells with Data Validation
CellAllowCriteria
I8List=IF(AND(I12="",J12 =""),"",IF(OR(I12="",J12 =""),selection,selection1))
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
You are stating in your data validation formula IF I12 and J12 both are BLANK, then give me BLANK. You are setting your data validation to BLANK which is why that error message is popping up.
 
Upvote 0
Solution
I see. Not that obvious to figure out. The alert message is not very helpful.

Would there be a way of instead showing a blank, show something like "n/a"? I have tried to replace the "" in the formula by "n/a" be it doesn't show the n/a. I suppose because it's dropdown list.
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,384
Members
449,080
Latest member
Armadillos

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