
Originally Posted by
daddylonglegs
MATCH returns a number if the name is found.....or an error otherwise, you need to deal with the error somehow, try either this version with MATCH
=IF(COUNT(MATCH(E2,Managers,0),MATCH(F2,Managers,0)),1,0)
or another way for the same result.....
=(SUMPRODUCT(COUNTIF(Managers,E2:F2))>0)+0
....or even
=(SUMPRODUCT((E2:F2=Managers)+0)>0)+0
The latter two rely on E2:F2 being a contiguous range - the last one also relies on E2:F2 being a horizontal range as opposed to Managers being a vertical range.....
Bookmarks