I wish I could download the add-in to post my worksheet, but I can't ... I'll have to try to describe it as best as I can, and relate portions of the existing formula to the relevant sections.
Also, Aladin - good catch - it was a typo and should have been 'M' in both references, not 'N'.
The formula provided is used as a Conditional Format, and it works well to evaluate a single cell. My desired modification is to develop a worksheet formula that will evaluate how many of the cells in a particular row meet the Conditional Format. In the example below, I will be referring to cell B4 as the target of the evaluation.
B4:Q35 is a matrix of NFL football games (Row 3 above the matrix is the week number and Column A next to the matrix are the teams) All names in the matrix are 2 or 3 letters, but away games contain an additional @ symbol at the front as well. So, A4 is ARI. B4:Q4 are ARI's weekly opponents: CAR, @WAS, @SEA, NYG, etc.
RIGHT(B4, LEN(B4)-IF(LEFT(B4, 1) = "@", 1, 0)): This portion of the formula currently eliminates the @ symbol from cell B4 if it exists. The edited value of B4 then becomes the lookup value in the VLOOKUP formula
NOTE: if needed, I can eliminate the @ symbols from all of the cells, but I would prefer to keep them if possible.
$A$42:$M$74 is an array of rankings. Each team is listed once in A43:A74 (without the @ symbol), and its rank in specific categories is listed in columns B:M. Within each column, numbers 1-32 appear only once.
$A$42:$M$74 is the lookup array of the VLOOKUP formula
$B$1 contains a text value selected from a data validation list. The value will be one of the headers of the stat ranking categories described in the previous section.
MATCH($B$1, $A$42:$M$42, 0): locates the stat ranking header and uses its position in the range as the column number in the VLOOKUP formula
$D$1 contains a numeric value from 1-10
If the result of the VLOOKUP function is less than the value of $D$1, the entire formula is TRUE in regards to cell B4.
DESIRED MODIFICATION:
The current formula returns TRUE/FALSE for the evaluation of a single cell. Is it greater than $D$1 or not. My request is to alter the formula to evaluate B4, C4, D4, ... Q4 and count how many of them return TRUE values.
Confused yet?