SUMPRODUCT

C

Connie Martin

I posted a question last week, to which I received the answer I needed, and
now I'm trying to apply the same style of formula to another already existing
formula but it isn't working and I can't figure it out. I have these
existing formulas:

=IF(COUNT(L30:L500)=0,"",COUNTIF(L30:L500,">0"))
=IF(COUNT(L30:L500)=0,"",COUNTIF(L30:L500,"<-4"))

With both of these formulas I want to count only if "BAG" is in E30:E500.

Thank you
Connie
 
A

Arvi Laanemets

Hi

=IF(COUNT(L30:L500)=0,"",SUMPRODUCT(--(L30:L500>0),--(E30:E500="BAG")))

=IF(COUNT(L30:L500)=0,"",SUMPRODUCT(--(L30:L500<=-4),--(E30:E500="BAG")))


Arvi Laanemets
 
C

Connie Martin

This appears to work. Thank you very much!

Arvi Laanemets said:
Hi

=IF(COUNT(L30:L500)=0,"",SUMPRODUCT(--(L30:L500>0),--(E30:E500="BAG")))

=IF(COUNT(L30:L500)=0,"",SUMPRODUCT(--(L30:L500<=-4),--(E30:E500="BAG")))


Arvi Laanemets
 

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