=COUNTIF($G$2:$G$19,G8)=1
I want to edit the above formula to inject AND to make 2 criteria
This did not work: =COUNTIF(AND(($G$2:$G$17,G8)=1)G8 <>"")
What I want to happen is for the cell not to accept any input if G8 is not repeated and/or blank.
Any help is appreciated.
From the situation, it appears that you want to count cells in the range that have either 1 or are blank. If this is the case, you can simple add multiple COUNTIF statements to return the total. e.g.: