Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
slf slf is offline
external usenet poster
 
Posts: 8
Default Multiple Criteria & Count if Equals 0

Need help with a formula to find criteria in one column then count the number
of 0's in another.
Example:

col a col b
smith 2
jones 9
smith 0
rider 4
smith 0
smith 0

need the return for the number of 0's for smith
this would equal 3

using excel2007
help is much appreciated

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Multiple Criteria & Count if Equals 0

Try this

=SUMPRODUCT((A1:A6="Smith")*(B1:B6=0))

Mike

"slf" wrote:

Need help with a formula to find criteria in one column then count the number
of 0's in another.
Example:

col a col b
smith 2
jones 9
smith 0
rider 4
smith 0
smith 0

need the return for the number of 0's for smith
this would equal 3

using excel2007
help is much appreciated

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Multiple Criteria & Count if Equals 0

Try
=SUMPRODUCT((A1:A10="Smith")*(B1:B10=0)*(B1:B10<" "))

If this post helps click Yes
---------------
Jacob Skaria


"slf" wrote:

Need help with a formula to find criteria in one column then count the number
of 0's in another.
Example:

col a col b
smith 2
jones 9
smith 0
rider 4
smith 0
smith 0

need the return for the number of 0's for smith
this would equal 3

using excel2007
help is much appreciated

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
slf slf is offline
external usenet poster
 
Posts: 8
Default Multiple Criteria & Count if Equals 0

Mike,
Thank you -
I had the "Sumproduct" but was unable to finish it. The * never occurred to
me.


"Mike H" wrote:

Try this

=SUMPRODUCT((A1:A6="Smith")*(B1:B6=0))

Mike

"slf" wrote:

Need help with a formula to find criteria in one column then count the number
of 0's in another.
Example:

col a col b
smith 2
jones 9
smith 0
rider 4
smith 0
smith 0

need the return for the number of 0's for smith
this would equal 3

using excel2007
help is much appreciated

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Multiple Criteria & Count if Equals 0


Hi,

Since you are using Excel 2007, you may also use this formula

=COUNTIFS(a5:a10,a12,b5:b10,0)

A12 has Smith

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"slf" wrote in message
...
Need help with a formula to find criteria in one column then count the
number
of 0's in another.
Example:

col a col b
smith 2
jones 9
smith 0
rider 4
smith 0
smith 0

need the return for the number of 0's for smith
this would equal 3

using excel2007
help is much appreciated

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
Filter Multiple Columns on Multiple Criteria and count the last co LBitler Excel Worksheet Functions 2 February 12th 09 08:36 PM
To count the data using multiple criteria in multiple columns Rajesh New Users to Excel 5 December 15th 08 04:07 PM
Count multiple criteria KJ Excel Worksheet Functions 7 December 4th 08 04:23 PM
Count multiple cells against multiple criteria in an Excel spreads EricB Excel Worksheet Functions 7 June 3rd 08 09:09 PM
Multiple Criteria, Count If, Sum Product to get count across range Jonathan Excel Worksheet Functions 5 January 9th 08 11:32 PM


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

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

About Us

"It's about Microsoft Excel"