Excel Data Validation List Error

%3CLINGO-SUB%20id%3D%22lingo-sub-139582%22%20slang%3D%22en-US%22%3EExcel%20Data%20Validation%20List%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-139582%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20Last%20mont%20or%20so%20i%20created%20an%20excel%20with%20a%20data%20Validation%20like%20this%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DIF(%24C%242%3D%22DAM-1%22%2C'Hiden%20Data'!%24B%242%3A%24B%245%2CIF(%24C%242%3D%22DAM-2%22%2C'Hiden%20Data'!%24B%246%3A%24B%248%2CIF(%24C%242%3D%22DISCO%20FAN%20LEAP-A%22%2C'Hiden%20Data'!%24B%249%3A%24B%2420%2CIF(%24C%242%3D%22DISCO%20FAN%20LEAP-B%22%2C'Hiden%20Data'!%24B%2421%3A%24B%2432%2CIF(%24C%242%3D%22DISCO%20FAN-7%22%2C'Hiden%20Data'!%24B%2433%3A%24B%2434)))))%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut%20now%20i%20tried%20to%20modify%20and%20get%20this%20error%3A%3C%2FP%3E%0A%3CP%3Ethe%20list%20source%20must%20be%20a%20delimited%20list%20or%20reference%20to%20single%20row%20or%20column%20using%20if%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eeven%20if%20i%20try%20to%20use%20the%20old%20code%20the%20error%20keeps%20showing%2C%20when%20it%20didn't%20before.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere's%20a%20way%20i%20can%20solve%20this%20witout%20defining%20a%20name%20for%20the%20range%20and%20transform%20them%20in%20tables%20because%20that%20interferes%20with%20a%20macro%20i%20have%20in%20the%20workbook.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-139582%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-139692%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20Data%20Validation%20List%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-139692%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22%22%3EPlease%20specify%20what%20change%20you%20want%20to%20make%20and%20where%3F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22%22%3EAnd%20provide%20us%20with%20a%20screenshot%20and%20a%20sample%20of%20your%20data.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-139635%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20Data%20Validation%20List%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-139635%22%20slang%3D%22en-US%22%3EHi%20Haytham%2C%3CBR%20%2F%3E%20%3CBR%20%2F%3EAs%20you%20can%20see%20in%20the%20code%2C%20all%20the%20options%20are%20in%20the%20same%20Coulmn%20(B).%3CBR%20%2F%3EThe%20code%20worked%20properly%20before%2C%20but%20now%20it%20doesn%C2%B4t%2C%20and%20that%20is%20exactly%20the%20proplem.%3CBR%20%2F%3EI%20only%20wanted%20to%20change%20one%20name%20option%2C%20but%20the%20error%20appeared.%20I%20canceled%2C%20opened%20again%2C%20and%20the%20data%20validation%20works%2C%20but%20if%20i%20open%20the%20data%20validation%20it%20will%20pop%20the%20error%2C%20even%20if%20i%20just%20opened%20and%20click%20acept%20without%20modifying%20anything.%3CBR%20%2F%3EAnd%20because%20i%20really%20need%20to%20modify%20it%2C%20its%20a%20problem.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-139617%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20Data%20Validation%20List%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-139617%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20data%20validation%20formula%20is%20valid!%3C%2FP%3E%0A%3CP%3ENothing%20wrong%20with%20it!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22short_text%22%3E%3CSPAN%20class%3D%22%22%3ERead%20the%20error%20message%20well%2C%3C%2FSPAN%3E%3C%2FSPAN%3E%20it's%20straightforward!%3C%2FP%3E%0A%3CP%3EIt%20means%20that%20the%20data%20validation%20list%20must%20be%20a%20one-way%20list%20(single%20column%20range%20or%20single%20row%20range)%2C%20or%20a%20delimited%20list%20like%20this%3A%20%3CSTRONG%3EA%2C%20B%2C%20AB%2C%20CD%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERange(%22A1%3AA10%22)%20%3CSTRONG%3EValid%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ERange(%22A1%3AD1%22)%20%3CSTRONG%3EValid%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ERange(%22A1%3AC10%22)%3CSTRONG%3E%20Invalid%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFollow%20these%20conditions%20and%20you%20will%20get%20rid%20of%20that%20error%20message!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1852391%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20Data%20Validation%20List%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1852391%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F104586%22%20target%3D%22_blank%22%3E%40Artemio%20Valdes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20had%20the%20very%20same%20issue.%20A%20validation%20formula%20previously%20working%20smoothly%20returned%20that%20alert%20once%20a%20new%20argument%20was%20added.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20a%20while%20I%20realized%20that%20if%20the%20cell%20you%20are%20checking%20contains%20already%20the%20value%20you%20are%20entering%20as%20filter%20for%20your%20validation%20list%20you%20get%20that%20alert.%20I%20solved%20deleting%20the%20relevant%20value%20from%20the%20cell%20before%20adding%20the%20new%20argument%20in%20the%20validation%20formula.%20New%20validation%20formula%20was%20then%20accepted.%20When%20writing%20the%20value%20again%20in%20the%20cell%20the%20validation%20was%20working%20perfectly.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENot%20sure%20I've%20been%20clear%20enough%20so%20I%20will%20write%20an%20example.%20My%20formula%20was%20something%20like%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DIF(AND(A1%26lt%3B%26gt%3B%22RS%22%2CA1%26lt%3B%26gt%3B%22GA%22%2CA1%26lt%3B%26gt%3B%22GG%22%2CA1%26lt%3B%26gt%3B%22YM%22%2C%20B1%26lt%3B%26gt%3B%22I%22%2CB1%26lt%3B%26gt%3B%22CS%22%2CC1%26lt%3B%26gt%3B%22PREC%22)%2CKPI_List)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20see%20that%20I%20was%20checking%20the%20values%20of%20various%20cells%20at%20the%20same%20time.%20I%20had%20to%20add%20another%20check%20(adding%20it%20at%20the%20beginning%20of%20the%20AND%20function%20below)%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DIF(AND(%3CSTRONG%3EA1%26lt%3B%26gt%3B%22MJ%22%2C%3C%2FSTRONG%3E%20A1%26lt%3B%26gt%3B%22RS%22%2CA1%26lt%3B%26gt%3B%22GA%22%2CA1%26lt%3B%26gt%3B%22GG%22%2CA1%26lt%3B%26gt%3B%22YM%22%2C%20B1%26lt%3B%26gt%3B%22I%22%2CB1%26lt%3B%26gt%3B%22CS%22%2CC1%26lt%3B%26gt%3B%22PREC%22)%2CKPI_List)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20returned%20the%20alert%20you%20are%20describing.%20The%20value%20%22MJ%22%20was%20in%20cell%20A1.%20I%20deleted%2C%20%22MJ%22%20from%20the%20cell%20A1%20and%20tried%20again%20to%20modify%20the%20formula.%20This%20time%20it%20worked%20and%20when%20writing%20back%20%22MJ%22%20in%20cell%20A1%20the%20validation%20was%20correctly%20working.%20Strange%20behavior.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello, Last mont or so i created an excel with a data Validation like this:

 

=IF($C$2="DAM-1",'Hiden Data'!$B$2:$B$5,IF($C$2="DAM-2",'Hiden Data'!$B$6:$B$8,IF($C$2="DISCO FAN LEAP-A",'Hiden Data'!$B$9:$B$20,IF($C$2="DISCO FAN LEAP-B",'Hiden Data'!$B$21:$B$32,IF($C$2="DISCO FAN-7",'Hiden Data'!$B$33:$B$34)))))

 

But now i tried to modify and get this error:

the list source must be a delimited list or reference to single row or column using if

 

even if i try to use the old code the error keeps showing, when it didn't before.

 

There's a way i can solve this witout defining a name for the range and transform them in tables because that interferes with a macro i have in the workbook.

4 Replies
Highlighted

The data validation formula is valid!

Nothing wrong with it!

 

Read the error message well, it's straightforward!

It means that the data validation list must be a one-way list (single column range or single row range), or a delimited list like this: A, B, AB, CD.

 

Range("A1:A10") Valid

Range("A1:D1") Valid

Range("A1:C10") Invalid

 

Follow these conditions and you will get rid of that error message!

Highlighted
Hi Haytham,

As you can see in the code, all the options are in the same Coulmn (B).
The code worked properly before, but now it doesn´t, and that is exactly the proplem.
I only wanted to change one name option, but the error appeared. I canceled, opened again, and the data validation works, but if i open the data validation it will pop the error, even if i just opened and click acept without modifying anything.
And because i really need to modify it, its a problem.
Highlighted

Please specify what change you want to make and where?

And provide us with a screenshot and a sample of your data.

Highlighted

@Artemio Valdes 

 

I had the very same issue. A validation formula previously working smoothly returned that alert once a new argument was added.

 

After a while I realized that if the cell you are checking contains already the value you are entering as filter for your validation list you get that alert. I solved deleting the relevant value from the cell before adding the new argument in the validation formula. New validation formula was then accepted. When writing the value again in the cell the validation was working perfectly. 

 

Not sure I've been clear enough so I will write an example. My formula was something like:

 

=IF(AND(A1<>"RS",A1<>"GA",A1<>"GG",A1<>"YM", B1<>"I",B1<>"CS",C1<>"PREC"),KPI_List)

 

You can see that I was checking the values of various cells at the same time. I had to add another check (adding it at the beginning of the AND function below):

 

=IF(AND(A1<>"MJ", A1<>"RS",A1<>"GA",A1<>"GG",A1<>"YM", B1<>"I",B1<>"CS",C1<>"PREC"),KPI_List)

 

This returned the alert you are describing. The value "MJ" was in cell A1. I deleted, "MJ" from the cell A1 and tried again to modify the formula. This time it worked and when writing back "MJ" in cell A1 the validation was correctly working. Strange behavior.