Using Table Headers as ranges in Data Validation

Copper Contributor

Hi Members,
I have a table named "Books". My table is very simple with 3 columns.
Book.ID, Book.Name, Book.Author
All i want to do is to avoid duplicate values in Book.ID column of a table using data validation.
I simply used the formula =COUNTIF(Books[Book.ID],Books[@[Book.ID]])=1

I also used " around table names. =COUNTIF("Books[Book.ID]","Books[@[Book.ID]]")=1

But it throws formula error window...

What am i doing wrong in this?

My table structure.

Book.IDBook.NameBook.Author
10001Sample Book 1Sample Author 1
10002Sample Book 2Sample Author 2
10001Sample Book 3Sample Author 3
1 Reply

Hi @prabutr28 

 

Try using R1C1 reference style.

 

=COUNTIF($A$2:A2,A2)<2

 

This will also allow for growth of the table.

 

Hope this helps.

BR,