Average

  • Thread starter Thread starter Sugar
  • Start date Start date
S

Sugar

I want to find out, on average, how many of my clients
were successful with B5:B32 containing data.

if n= s/u/na (successful, unsuccessful, not applicable)


Thanks for the help
 
Hi

to count the number of successful
=COUNTIF(B5:B32,"s")
so
=COUNTIF(B5:B32,"s")/COUNTA(B5:B32)
formatted as a percent will give you the percentage of clients who were
successful

Cheers
JulieD
 
Thank you Julie!!!
-----Original Message-----
Hi

to count the number of successful
=COUNTIF(B5:B32,"s")
so
=COUNTIF(B5:B32,"s")/COUNTA(B5:B32)
formatted as a percent will give you the percentage of clients who were
successful

Cheers
JulieD




.
 
I ran into a new issue ...

I need it to ignore the open cases - "o". Obviously if I
have 32 open cases and only 5 have been closed, I don't
want it to add "o" to the average b/c that means only like
1% was successful, which isn't accurate.

Any ideas about that?
 
One way is to just divide by the count of the codes you want:
=COUNTIF(B5:B32,"s")/SUMPRODUCT(COUNTIF(B5:B32,{"u","s","na"}))

or count all and subtract the ones you don't want:
=COUNTIF(B5:B32,"s")/(COUNTA(B5:B32)-COUNTIF(B5:B32,"o"))
 

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