![]() |
#1
|
|||
|
|||
![]()
=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. |
#2
|
||||
|
||||
![]()
Hi,
Quote:
=COUNTIF($G$2:$G$19,G8)=1 but, since G2:G19 intersects G8, for G8 to be repeated, shouldn't the check be: =COUNTIF($G$2:$G$19,G8)>1 ? Depending on that, I think you want a data validation formula like this: Code:
=AND(COUNTIF(G2:G17,G8)>1,NOT(ISBLANK(G8))) |
#3
|
|||
|
|||
![]()
Thanks, let me rephrase my problem:
I need to enter data in columns H where this formula is needed and column G where criteria has to be met. Column G for example has rows for data validation from 2 to 19: First criteria - H should not accept the data (which is numerical) if the value in G2 until G19 is duplicated. The value in G column must only entered once Second criteria - H should not accept the data if value of column G is blank. I hope this is clearer now. Thanks. =COUNTIF($G$2:$G$19,G8)=1 but, since G2:G19 intersects G8, for G8 to be repeated, shouldn't the check be: =COUNTIF($G$2:$G$19,G8)>1 |
#4
|
||||
|
||||
![]()
Hi,
Data validation in H2 would be: Code:
=AND(COUNTIF($G$2:$G$19,$G2)=1,NOT(ISBLANK($G2))) |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Criteria in Outlook Search | Nancy Grams | Outlook | 0 | 11-12-2009 03:03 PM |
![]() |
p0k | Excel | 1 | 10-22-2009 08:33 PM |
How to count cells containing data and meet certain criteria | AdamNT | Excel | 1 | 08-11-2006 11:51 PM |
![]() |
pumpkin head | Excel | 1 | 02-17-2006 09:06 AM |
![]() |
jvieille | Misc | 1 | 02-11-2006 06:26 AM |