I know it's pretty simple to prevent duplicates in a column, using data validation or VBA - but how do you do it across multiple cells?
say I've got a spreadsheet where A2 is Surname, B2 is Forename, and C2 is a date value, I want to prevent users duplicating all three.
So each column can contain duplicates, but there cannot be the same combination of each three appearing more than once. The simplest thing I though would be to concatenate (A2,B2,C2) and stick custom validation on the resulting formula, but that didn't seem to work. I've also tried a few VBA bits I picked up from various online places but they all relate to single columns it seems.
any ideas?
say I've got a spreadsheet where A2 is Surname, B2 is Forename, and C2 is a date value, I want to prevent users duplicating all three.
So each column can contain duplicates, but there cannot be the same combination of each three appearing more than once. The simplest thing I though would be to concatenate (A2,B2,C2) and stick custom validation on the resulting formula, but that didn't seem to work. I've also tried a few VBA bits I picked up from various online places but they all relate to single columns it seems.
any ideas?