Hola Señor,
B2: =COUNTIF(Draws :: $B:$T,"="&A)-ROW()/10000
B2: =COUNTIF(Draws :: $B:$F,"="&A2)
My formula on top, yours below.
$B:$F is a correct edit for your situation, where the drawn numbers are listed in five columns. $ is an operator that specifies the reference is 'absolute', columns, even if the formula is filled or copied to the left or right.
"="&A and "="&A2 are equivalent, provided the formula is on row 2.
When it is filled down to the next row, the first will look the same ("="&A), but will now reference the cell on row 3 of column A. the second ("="&A2) will change to "="&A3.
"="&A2 is a 'Relative" cell reference. Filled to the right, the column reference (A) will change as the formula is filled right (which it won't be in this case); filled down, the row reference will increase by 1 for each new row.
The expression is the condition statement that determines which value will be included in the count. The condition statement must be presented as a text string, accomplished here by placing quotes around the comparison operator ( = ), then using the concatenation operator ( & ) to attach the content of cell A2, as text to the =. For many people, me included, writing the condition in COUNTIF (or SUMIF) is the part giving the most difficulty.
So the first part of the formula looks fine.
Part 2, the part following the - sign is necessary if there's any possibility of two or more of the numbers having been drawn the same number of times. The probability leans heavily toward this happening, so this part of the formula is necessary. LOOKUP will find only the first occurrence of a repeated count, and will find it repeatedly. Without that adjustment, if the top two numbers are 4 and 9, and each was drawn 41 times, the Top 10 will show 9 in places 1 and 2.
Note that the adjustment does introduce a bias. If the there are three numbers tied for tenth place in the count, the adjustment as written will always assign the tenth place to the one closest to the top of the list (ie. the one whose cell has the lowest row number). Changing the minus sign to a plus sign will reverse the bias and favour numbers further down the list in cases of equal counts.
Now that you've waded through that here's the short answer: Your formula looks fine for getting the actual count, but needs to have the second part added to make the LOOKUP work.
Regards,
Barry