ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   count of items that results from two "IF" statements (https://www.excelbanter.com/excel-programming/357291-count-items-results-two-if-statements.html)

johnsonconsulting

count of items that results from two "IF" statements
 
I am trying to create a count of items. I have a column of item names and
next to each is a true/false column to verify whether it gets counted or not.
I want to get a total number of each item that has the true flag next to it.



Bob Phillips[_6_]

count of items that results from two "IF" statements
 
=SUMPRODUCT(--(A1:A100="item_name"),--(B1:B100=TRUE))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"johnsonconsulting" wrote in
message ...
I am trying to create a count of items. I have a column of item names and
next to each is a true/false column to verify whether it gets counted or

not.
I want to get a total number of each item that has the true flag next to

it.






All times are GMT +1. The time now is 12:33 PM.

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