As Far as the Array Formula in Cells U5:U1504.

In Cell U5 ( Copy & Paste from Here ), Enter the Formula :-

=IF($N$5=0," " ,IF(COUNT(MATCH(INDIRECT(U$1),$E5:$J5,0))=5,IF(COUNT(MATCH(INDIRECT(U$1),$K5,0))=1,"5+","5"),COUNT(MATCH(INDIRECT(U$1),$E5:$J5,0))))
Do NOT Press Enter, Press Ctrl + Shift + Enter Together, this will Convert the Formula to an Array Formula. The Formula Should then Look like this :-

{=IF($N$5=0," " ,IF(COUNT(MATCH(INDIRECT(U$1),$E5:$J5,0))=5,IF(COUNT(MATCH(INDIRECT(U$1),$K5,0))=1,"5+","5"),COUNT(MATCH(INDIRECT(U$1),$E5:$J5,0))))}

Notice the Curly Brackets at the Beginning and End of the Formula, if you have these then the Formula is Now an Array Formula and is OK. Copy this Formual Down to Cell U1504.

The Reason the Cells would be Blank is Because there are NO Numbers in the First Cell of the Combinations to Check ( Cells N5:N1504 ).

**************************************************

As Far as the Cells T1506:T1513 Not Counting.

They are NOT Supposed to Count, these Cells are JUST Titles for the Totals that are Produced in Columns U to Whatever the Number of Combinations you are Checking.

**************************************************

Let me know if Everything Goes OK.

Good Luck.

All the Best.

PAB