Avoid counting Blank cells as "0"

  • Thread starter micro1000 via OfficeKB.com
  • Start date
M

micro1000 via OfficeKB.com

Hi I am using following formula:

=SUMPRODUCT((import!$N$1:INDEX(import!$N$1:$N$35000;COUNT(import!$A$1:$A
$35000))>0)*(import!$N$1:INDEX(import!$N$1:$N$35000;COUNT(import!$A$1:$A
$35000))<=3))

My problem is that >0 does not count cells with 0 but only larger than 0. If
I change it to >=0 it sees all blank cells within N1:N35000 as 0.

How can I avoid this????
 
B

Bob Phillips

=SUMPRODUCT(
(import!$N$1:INDEX(import!$N$1:$N$35000,COUNT(import!$A$1:$A$35000))>=0)
*(import!$N$1:INDEX(import!$N$1:$N$35000,COUNT(import!$A$1:$A$35000))<=3)
*(import!$N$1:INDEX(import!$N$1:$N$35000,COUNT(import!$A$1:$A$35000))<>""))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top