A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
=IF(COUNTIF(K10:K22,"<=8")<6,"FAIL",SUMPRODUCT(AGGREGATE(15,6,IF(K10:K22>0,K10:K22),{1,2,3,4,5}))+K9)
The { } indicate that it is an array formula. To save a formula as an array formula, confirm it with Ctrl+Shift+Enter.