JamieArvato
Technical User
I found what I thought was a perfect solution to a problem I have in putting in the custom data validation below warning of duplicate values in a column;
=IF(COUNTIF(A:A,A12)>1,FALSE,TRUE)
BUT........
I already had this column as a list data validation so that people could only pick from a particular list (being a 1,000 name staff list so not something I can do without due to mis-spelling etc.)
What I really want is both, pick from a list which then checks and warns if used before ?!?
The only way I can see is a Worksheet_Change code to loop through all the cells and search for a match. If this is the case can anyone help with that....
It would be on changing range("A310:A360"), check for a match in range("A10:A309"), then a simple if then MsgBox.
Thanks.
=IF(COUNTIF(A:A,A12)>1,FALSE,TRUE)
BUT........
I already had this column as a list data validation so that people could only pick from a particular list (being a 1,000 name staff list so not something I can do without due to mis-spelling etc.)
What I really want is both, pick from a list which then checks and warns if used before ?!?
The only way I can see is a Worksheet_Change code to loop through all the cells and search for a match. If this is the case can anyone help with that....
It would be on changing range("A310:A360"), check for a match in range("A10:A309"), then a simple if then MsgBox.
Thanks.