Thread: countifs?
View Single Post
 
Old 05-23-2012, 08:29 AM
Colin Legg's Avatar
Colin Legg Colin Legg is offline Windows 7 32bit Office 2010 32bit
Expert
 
Join Date: Jan 2011
Location: UK
Posts: 369
Colin Legg will become famous soon enough
Default

Hi,

A cell can't contain the exact value "sales" and the exact value "marketing", so your COUNTIFS() formula returns 0.

Assuming you want to count the cells in A1:A12 which are "sales" OR "marketing" you can do it like this:

=COUNTIF(A1:A12,"sales")+COUNTIF(A1:A12,"marketing ")

or

=SUM(COUNTIF(A1:A12,{"sales","marketing"}))

or

=SUMPRODUCT(COUNTIF(A1:A12,B1:B2))
where B1 has the word sales and B2 has the word marketing
Reply With Quote