In article <1120236668.473621.178400@z14g2000cwz.googlegroups.com>,
"Harlan Grove" <hrlngrv@aol.com> wrote:
> The volatile OFFSET call isn't needed for this. It could be done with
>
> =IF(ISNUMBER(1/COUNTIF(INDEX($A$2:$D$6000,0,MATCH(F1,$A$1:$D$1,0)),F2))
> ,"Y","N")
>
> Another advantage is that if rows with new phone numbers were inserted
> between rows 2 and 6000, the range reference in the INDEX formula will
> automatically expand to include them. The OFFSET formula would require
> manually changing the 6000 figures.
Or, you can eliminate the ISNUMBER function...
=IF(COUNTIF(INDEX($A$2:$D$6000,0,MATCH(F1,$A$1:$D$1,0)),F2)>0,"Y","N")
Bookmarks