ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Counting rows based on multiple columns (https://www.excelbanter.com/excel-worksheet-functions/112225-counting-rows-based-multiple-columns.html)

Doyle

Counting rows based on multiple columns
 
Hi everyone. I have two columns of various information and I want to count
the number of rows that have both "accept" in column 1 and "february" in
column 2. I want to avoid having to create another column of data. Thanks
for any help.

Biff

Counting rows based on multiple columns
 
Try this:

=SUMPRODUCT(--(A1:A10="accept"),--(B1:B10="February"))

Biff

"Doyle" wrote in message
...
Hi everyone. I have two columns of various information and I want to
count
the number of rows that have both "accept" in column 1 and "february" in
column 2. I want to avoid having to create another column of data.
Thanks
for any help.





All times are GMT +1. The time now is 02:46 PM.

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