COUNTIF with nestled IF?

  • Thread starter Thread starter Scott Calkins via OfficeKB.com
  • Start date Start date
S

Scott Calkins via OfficeKB.com

I have 2 columns of data containing lettere only. I.e. column A is
A,A,B,B,C,C, etc and column B has "S"s and "E"s in it. I want to just
count the total "A"s in column A, but only if the matching cell in column B
is "S". Is there a way to nestle in a "if" into the countif function?
ie =countif(a:a,"B",if(b:b="S"))
Scott
 
Note that you cannot use a whole column with this method (as Peo shows) as
you can with COUNTIF/SUMIF, you must use a defined range.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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

Similar Threads

countifs Function not giving desired result with date criteria 2
countif 3
Countif gone wrong 2
COUNTIF with 2 columns 2
countifs 23
Countif maybe 4
Countif and sumif combination problem 2
COUNTIF AND COUNTIF 3

Back
Top