View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Teethless mama Teethless mama is offline
external usenet poster
 
Posts: 3,718
Default Finding top four scores, need to insert zero

Try this:

=IF(COUNT(F2:K2)<4,SUM(F2:K2),SUM(LARGE(F2:K2,{1,2 ,3,4})))


"Raza" wrote:

I'm using this formula to determine the top four scores of a competitions
series:

=SUMPRODUCT(LARGE(F2:K2,ROW(INDIRECT("1:4"))))

It works great, but not everyone has done four competitions and since those
cells empty, I get a #NUM! error.

Is there a way to insert zeros into the empty cells, or is there a better
formula?

Thanks!