Multiple criteria problems using COUNT

  • Thread starter Thread starter Julz
  • Start date Start date
J

Julz

I desperately need some help! :)


I've got column K, T & AD. I need a formula for the following
I need to know the sum of K<31 when AD=3 then divide that by how many
times T=N.
The answer should be a percentage.

K T AD
10 N 3
30 N 3
32 N 2

Here's what I've been using and I always get %100, which shouldn't be
the case.

=COUNT((open!$K$4:$K$20002<31)*((open!$AD:$AD=1))/COUNT(open!T:T="N"))

thanx in advance,
~Julz
 
Hi Julz,

Not tested, but try this


=SUMPRODUCT((open!$K$4:$K$20002<31)*(open!$AD:$AD=1))/COUNT(open!T:T="N"))

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

I desperately need some help! :)

I've got column K, T & AD. I need a formula for the following
I need to know the sum of K<31 when AD=3 then divide that by how many times T=N.
The answer should be a percentage.

K T AD
10 N 3
30 N 3
32 N 2

Here's what I've been using and I always get %100, which shouldn't be the case.

=COUNT((open!$K$4:$K$20002<31)*((open!$AD:$AD=1))/COUNT(open!T:T="N"))

thanx in advance,
~Julz
 
Hi
try
=SUMIF(AD4:AD20000,3,K4:K20000)/COUNTIF(T4:T20000,"N")
and format this as a percentage

Note: I#m not so sure if this would lead to a plausible result as you
divide a sum with a count
 
=SUMPRODUCT(--(AD1:AD10=3),--(K1:K10<31),K1:K10)/COUNTIF(T1:T10,"N")
 
Hi Bob
you probably meant
=SUMPRODUCT((open!$K$4:$K$20002<31)*(open!$AD4:$AD20002=1))/COUNT(open!
T:T="N"))

--
Regards
Frank Kabel
Frankfurt, Germany


Bob said:
Hi Julz,

Not tested, but try this
=SUMPRODUCT((open!$K$4:$K$20002<31)*(open!$AD:$AD=1))/COUNT(open!T:T="N
"))
 
I said it wasn't tested<vbg>

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Peo,

Now I'm getting )0%, which is also not correct. Any other ideas?

Thanx!!
~Julz
 
Now the formula is returning 600%. Hmmm...

~J

Frank said:
Hi Bob
you probably meant
=SUMPRODUCT((open!$K$4:$K$20002<31)*(open!$AD4:$AD20002=1))/COUNT(open!
T:T="N"))

--
Regards
Frank Kabel
Frankfurt, Germany


=SUMPRODUCT((open!$K$4:$K$20002<31)*(open!$AD:$AD=1))/COUNT(open!T:T="N
"))
 
Hi
best way would be if you could explain what you're trying to calcualte
(not as formula but as 'plain' business spec'). After this it should be
easy to create a formula.

If you get a #DIV/0 error there probably is no 'N' in the range
T4:T20000
 
Frank,

Well, there are approximately 36 N's in that range, so I know that's not
the case.

Let's try this for a bizness spec.

I'm looking for the percentage of priority 1 (column AD) trouble tickets
where we notified the customer within 30 minutes (column K) that were not
part of a mass outage (column T). This calculation is our mean time to
notify within 30 minutes on priority 1 tickets.

Does this help?

Thanx,
~Julz.
 
Hi
try
=SUMPRODUCT((AD1:AD1000=1)*(K1:K1000<=30)*(T1:T1000="N"))/COUNTID(AD1:A
D1000=1)

adjust the ranges to your need
 
Hello again Frank (thanx for all your help... really)
I wish I could say this was a success, but I'm afraid that now I'm
returning #NAME?.
=SUMPRODUCT((open!AD3:AD373=1)*(open!K3:K373<=30)*(open!T3:T373="N"))/COUNTID(open!AD3:AD373=1)

I'm stumped.
~J
 
I'm almost afraid to reply... now I'm getting a "too few arguments
message".
any other suggestions...
 
Hi
no problem. It's my fault (maybe to much wine in the evening9. Try the
following:
=SUMPRODUCT((open!AD3:AD373=1)*(open!K3:K373<=30)*(open!T3:T373="N"))/C
OUNTIF(open!AD3:AD373,1)

and format the resulting cell as percentage
 
WAHOO-HOO!!!

That's it!!! YOU SIR, have made my week (that's how long I've been working
on this).
<HUG>!!!!!

I'll try to refrain from any more questions... for at least a day.

Thanx again, I couldn't have done it without you!
~Julz
 

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

Back
Top