COUNTIF with nestled IF?

  • Thread starter Scott Calkins via OfficeKB.com
  • 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
 
B

Bob Phillips

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


Top