ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Count if with multiple column criteria (https://www.excelbanter.com/excel-worksheet-functions/200994-count-if-multiple-column-criteria.html)

JPS

Count if with multiple column criteria
 
I have multiple columns in a spreadsheet and I need to count the number times
column D contains €œTBN€ when column L is equal to 1

Thanks.

--
JPS

Max

Count if with multiple column criteria
 
Maybe something like this in say, M2:
=SUMPRODUCT((D2:D10="TBN")*(L2:L10=1))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700 Files:359 Subscribers:55
xdemechanik
---
"JPS" wrote:
I have multiple columns in a spreadsheet and I need to count the number times
column D contains €œTBN€ when column L is equal to 1



JPS

Count if with multiple column criteria
 
Max,
Works great when column D is only "TBN" how do I add criteria when D
conatins TBN-July or TBNamed
--
JPS


"Max" wrote:

Maybe something like this in say, M2:
=SUMPRODUCT((D2:D10="TBN")*(L2:L10=1))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700 Files:359 Subscribers:55
xdemechanik
---
"JPS" wrote:
I have multiple columns in a spreadsheet and I need to count the number times
column D contains €œTBN€ when column L is equal to 1



Max

Count if with multiple column criteria
 
This then, in M2:
=SUMPRODUCT((ISNUMBER(SEARCH("TBN",D2:D10))*(L2:L1 0=1)))

Replace SEARCH with FIND if you need it to be a stricter, case sensitive
search
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700 Files:359 Subscribers:55
xdemechanik
---
"JPS" wrote:
Max,
Works great when column D is only "TBN" how do I add criteria when D
contains TBN-July or TBNamed



Mike H

Count if with multiple column criteria
 
Try

=SUMPRODUCT((LEFT(D2:D10,3)="TBN")*(L2:L10=1))

Mike

"JPS" wrote:

Max,
Works great when column D is only "TBN" how do I add criteria when D
conatins TBN-July or TBNamed
--
JPS


"Max" wrote:

Maybe something like this in say, M2:
=SUMPRODUCT((D2:D10="TBN")*(L2:L10=1))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700 Files:359 Subscribers:55
xdemechanik
---
"JPS" wrote:
I have multiple columns in a spreadsheet and I need to count the number times
column D contains €œTBN€ when column L is equal to 1



JPS

Count if with multiple column criteria
 
Perfecto... Thanks
--
JPS


"Max" wrote:

This then, in M2:
=SUMPRODUCT((ISNUMBER(SEARCH("TBN",D2:D10))*(L2:L1 0=1)))

Replace SEARCH with FIND if you need it to be a stricter, case sensitive
search
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700 Files:359 Subscribers:55
xdemechanik
---
"JPS" wrote:
Max,
Works great when column D is only "TBN" how do I add criteria when D
contains TBN-July or TBNamed



JPS

Count if with multiple column criteria
 
Mike,
Worked... Thanks for the solution
--
JPS


"Mike H" wrote:

Try

=SUMPRODUCT((LEFT(D2:D10,3)="TBN")*(L2:L10=1))

Mike

"JPS" wrote:

Max,
Works great when column D is only "TBN" how do I add criteria when D
conatins TBN-July or TBNamed
--
JPS


"Max" wrote:

Maybe something like this in say, M2:
=SUMPRODUCT((D2:D10="TBN")*(L2:L10=1))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700 Files:359 Subscribers:55
xdemechanik
---
"JPS" wrote:
I have multiple columns in a spreadsheet and I need to count the number times
column D contains €œTBN€ when column L is equal to 1


Max

Count if with multiple column criteria
 
"JPS" wrote:
Perfecto... Thanks


Welcome. Take a moment to press the "Yes" button below
from where you're reading this.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700 Files:359 Subscribers:55
xdemechanik
---


All times are GMT +1. The time now is 04:30 PM.

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