I'm not sure you really need SUMPRODUCT, why not use COUNTIF ? The latter is more efficient and Conditional Formatting to quote Charles Williams is "super volatile"... so avoiding SUMPRODUCT where possible may prove worthwhile.
=COUNTIF($J$2:$V$100,$F2)

Originally Posted by
cunner
I don't know what the ">0" in the end of your formula does...
in reality this is not required based on the following points:
-- Conditional Formatting concerns itself only with TRUE/FALSE output.
-- in XL only 0 equates to FALSE (thus all other numbers are in effect TRUE)
-- Errors will simply be evaluated as FALSE
So in essence should the MATCH have found something it would return an integer which would thus equate to TRUE, if it did not it would return an Error (#N/A) which thus equates to FALSE.
If errors were not handled in this manner - as is the case should you use the formula within a cell - then you would use an ISNUMBER test rather than a >0 test given a MATCH will never return 0.
which would return TRUE (found) or FALSE (not found)
would return TRUE (found) or #N/A (not found) as would
but as discussed - in Conditional Formatting you don't need the additional test because Errors are treated as False by default so the last example would work without issue.
Bookmarks