ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   a countif statement with multiple conditions (https://www.excelbanter.com/excel-discussion-misc-queries/208448-countif-statement-multiple-conditions.html)

perfect_one1

a countif statement with multiple conditions
 
countif cell a=ace and cell b=club, diamond, or spade. this is in a very
large spreadsheet


Don Guillett

a countif statement with multiple conditions
 

try
=sumproduct((a2:a22="ace")*(b2:b22={"club","diamon d","spade"}))
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"perfect_one1" wrote in message
...
countif cell a=ace and cell b=club, diamond, or spade. this is in a very
large spreadsheet




All times are GMT +1. The time now is 05:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com