Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-23-2012, 08:29 AM
Colin Legg's Avatar
Colin Legg Colin Legg is offline countifs? Windows 7 32bit countifs? 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
 



Other Forums: Access Forums

All times are GMT -7. The time now is 05:12 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft