Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JPS JPS is offline
external usenet poster
 
Posts: 47
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JPS JPS is offline
external usenet poster
 
Posts: 47
Default 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


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default 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




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JPS JPS is offline
external usenet poster
 
Posts: 47
Default 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


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JPS JPS is offline
external usenet poster
 
Posts: 47
Default 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

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default 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
---
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count multiple cells against multiple criteria in an Excel spreads EricB Excel Worksheet Functions 7 June 3rd 08 09:09 PM
COUNT and SUM with multiple criteria KiltedPhotography Excel Discussion (Misc queries) 2 April 18th 08 05:50 PM
Count with multiple column criteria Joe M. Excel Discussion (Misc queries) 2 January 14th 08 04:35 PM
Multiple Criteria, Count If, Sum Product to get count across range Jonathan Excel Worksheet Functions 5 January 9th 08 11:32 PM
Count on Multiple Criteria over whole column George Excel Worksheet Functions 7 June 26th 07 09:32 PM


All times are GMT +1. The time now is 03:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"