Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default COUNT IF - 2 conditions

2 columns.
column 1 needs to be searched for a certain numerical value (a 6 digit code)
column 2 is a series of numbers and needs to be searched for a value greater
than 30

i.e. would want to to bring up how many examples of 666666 have a value of
greater than 30
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default COUNT IF - 2 conditions

Hi Darren

=SUMPRODUCT(--($A$2:$A$1000=666666),--($B$2:$B$100030))
Better to put the values required in separate cells, then there is no need
to change the formula when you look for other results

=SUMPRODUCT(--($A$2:$A$1000=D1),--($B$2:$B$1000E1))

--
Regards
Roger Govier

"Darrren" wrote in message
...
2 columns.
column 1 needs to be searched for a certain numerical value (a 6 digit
code)
column 2 is a series of numbers and needs to be searched for a value
greater
than 30

i.e. would want to to bring up how many examples of 666666 have a value of
greater than 30


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default COUNT IF - 2 conditions

Try

=SUMPRODUCT((A1:A20=666666)*(B1:B2030))

Mike

"Darrren" wrote:

2 columns.
column 1 needs to be searched for a certain numerical value (a 6 digit code)
column 2 is a series of numbers and needs to be searched for a value greater
than 30

i.e. would want to to bring up how many examples of 666666 have a value of
greater than 30

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default COUNT IF - 2 conditions

Thank you Roger and Mike. Very much appreciate your assistance

Darren

"Mike H" wrote:

Try

=SUMPRODUCT((A1:A20=666666)*(B1:B2030))

Mike

"Darrren" wrote:

2 columns.
column 1 needs to be searched for a certain numerical value (a 6 digit code)
column 2 is a series of numbers and needs to be searched for a value greater
than 30

i.e. would want to to bring up how many examples of 666666 have a value of
greater than 30

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default COUNT IF - 2 conditions

=SUMPRODUCT((A1:A100=666666)*(B1:B10050))

so data like:

666666 1
666666 1
666666 100
666666 100
555555 100
555555 1
555555 1
555555 1

yields a 2
--
Gary''s Student - gsnu200819


"Darrren" wrote:

2 columns.
column 1 needs to be searched for a certain numerical value (a 6 digit code)
column 2 is a series of numbers and needs to be searched for a value greater
than 30

i.e. would want to to bring up how many examples of 666666 have a value of
greater than 30



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 if - 2 conditions orquidea Excel Discussion (Misc queries) 7 February 5th 08 07:52 PM
Count with 2 conditions, second one OR [email protected] Excel Worksheet Functions 2 June 4th 06 05:55 PM
How to count after 2 conditions are met Dave Schwinger Excel Worksheet Functions 3 April 3rd 06 09:29 PM
Count ifs - 2 conditions Nick Excel Discussion (Misc queries) 5 January 12th 06 05:06 PM
Count with 2 conditions? Lee Excel Worksheet Functions 2 March 19th 05 02:45 AM


All times are GMT +1. The time now is 12:35 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"