Help! Blanks being counted as zeros...fix?

teacherniv

New Member
Joined
Nov 20, 2013
Messages
6
i'M TRYING TO FIX THIS FORMULA SO THAT WHEN IT ADDS THE COLUMN, IT ONLY ADDS THE NUMBERS AND DOES COUNT THE BLANK CELLS. ITS COUNTING THE BLANKS AS ZEROS, AND THROWING OFF THE TOTAL. IM LOOKING TO GET THE 5 LOWEST SCORES FROM 8 POSSIBLE AND THEN ADD THEM TOGETHER.

=IF(SUM(M7:M14)>10,SUM(M7:M14)-IF(COUNTIF(M7:M14,">0")>5,(LARGE(M7:M14,1)+LARGE(M7:M14,2)+LARGE(M7:M14,3)),0))

IM PULLING OUT WHAT LITTLE HAIR I HAVE LEFT. HELP!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
i'M TRYING TO FIX THIS FORMULA SO THAT WHEN IT ADDS THE COLUMN, IT ONLY ADDS THE NUMBERS AND DOES COUNT THE BLANK CELLS. ITS COUNTING THE BLANKS AS ZEROS, AND THROWING OFF THE TOTAL. IM LOOKING TO GET THE 5 LOWEST SCORES FROM 8 POSSIBLE AND THEN ADD THEM TOGETHER.

=IF(SUM(M7:M14)>10,SUM(M7:M14)-IF(COUNTIF(M7:M14,">0")>5,(LARGE(M7:M14,1)+LARGE(M7:M14,2)+LARGE(M7:M14,3)),0))

IM PULLING OUT WHAT LITTLE HAIR I HAVE LEFT. HELP!

Looks like...

=SUMPRODUCT(SMALL(M7:M14,ROW(INDIRECT("1:"&MIN(5,COUNT(M7:M14))))))
 
Upvote 0
Looks like...

=SUMPRODUCT(SMALL(M7:M14,ROW(INDIRECT("1:"&MIN(5,COUNT(M7:M14))))))


THANKS! I'm not sure WHY it works if Im using a new worksheet but if using my older one, the code doesn't work. I guess I'm going to re-do the worksheet from scratch using the formula you provided. I got the worksheet from someone else and I'm thinking there are hidden formulas or conditions that I don't know about. Your formula worked. Thanks again.
 
Upvote 0
THANKS! I'm not sure WHY it works if Im using a new worksheet but if using my older one, the code doesn't work. I guess I'm going to re-do the worksheet from scratch using the formula you provided. I got the worksheet from someone else and I'm thinking there are hidden formulas or conditions that I don't know about. Your formula worked. Thanks again.

Youare welcome.
 
Upvote 0

Forum statistics

Threads
1,221,443
Messages
6,159,907
Members
451,601
Latest member
terrynelson55

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top