Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default =COUNT(IF(AND(K2:K20=382,K2:K20<=383),IF(E2:E20=" x",1,0)))

k2-k20 is a range of numbers
E2-E20 include X as a name

I'm attempting to count all the instances in which x exist between 382 and
383 in the k colum.
I'm using a count(if(...)) array formula to count all of the information.
The second example of count if in excel tutorial, under "Count how often
multiple text or number values occur by using functions" only matches one
text parameter to one number parameter. I'm trying to have it match one text
parameter to two numbers or a range.


thanks,
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dav Dav is offline
external usenet poster
 
Posts: 1
Default =COUNT(IF(AND(K2:K20=382,K2:K20<=383),IF(E2:E20=" x",1,0)))


Try

=sumproduct((K2:K20=382)*(K2:K20<=383)*(E2:E20="x "))

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=573809

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 176
Default =COUNT(IF(AND(K2:K20=382,K2:K20<=383),IF(E2:E20=" x",1,0)))

=SUMPRODUCT(--(K2:K20=382),--(K2:K20<=383),--(E2:E20="x"))

--
Regards,
Dave


" wrote:

k2-k20 is a range of numbers
E2-E20 include X as a name

I'm attempting to count all the instances in which x exist between 382 and
383 in the k colum.
I'm using a count(if(...)) array formula to count all of the information.
The second example of count if in excel tutorial, under "Count how often
multiple text or number values occur by using functions" only matches one
text parameter to one number parameter. I'm trying to have it match one text
parameter to two numbers or a range.


thanks,

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



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