ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Finding top four scores, need to insert zero (https://www.excelbanter.com/excel-worksheet-functions/134279-finding-top-four-scores-need-insert-zero.html)

Raza

Finding top four scores, need to insert zero
 
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!

Teethless mama

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!


[email protected]

Finding top four scores, need to insert zero
 
Try

=SUMIF($F$2:$K$2,"="&LARGE($F$2:$K$2,4))

Hope this helps.

On Mar 10, 9:26 am, 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!





All times are GMT +1. The time now is 04:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com