Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Conditional Count (Array Formula?)

Hello all,

I am trying to create a weekly summary page on a monthly missed pickup
report that counts the number of times a missed pickup appears (given codes
1-3) for a certain driver (name) within a date range. This is what I've
figured out so far:

=COUNTIF(K4:K33,"james")*AND(COUNTIF(M4:M33,"1")*A ND(COUNTIF(E4:E33,"1")))

This works halfway, but the data I need summarized is broken down into three
codes (the second countif section - choice of 1, 2, or 3). The third countif
section is my way of separating the weeks of the month (1-4). Currently, this
formula is counting even just the appearance of the name as 1 entry in
addition to the actual data codes I want counted. I may have gone the long
way around the mountain to do this, but I am stuck trying to figure out a way
to get this done. Ideally, I'd like to just put in a date range and name as
conditions and a code to search for and count.

Thanks in advance.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,365
Default Conditional Count (Array Formula?)

Try
=SUMPRODUCT(--($K$4:$K$33="james"),--($M$4:$M$33,=1),--($E$4:$E$33=1))
You can change the various parameters to look for other people, other codes
(2, 3) besides 1 and other weeks of the month.
You could even make it flexible and refer to values in another set of cells
to look data up for others in one cell. Example: you put the formula above
on the same sheet with the data in E, K and M in it- in A1 you type in a
name, in B1 you put in one of the codes (1 2 or 3) and in C1 you put in the
week of the month to look at: then in A2 you put in
=SUMPRODUCT(--($K$4:$K$33=A1),--($M$4:$M$33,=B1),--($E$4:$E$33=C1))
and A2 will give you a count of the matches of all 3 entries on rows 4:33.

"Debbie Mason" wrote:

Hello all,

I am trying to create a weekly summary page on a monthly missed pickup
report that counts the number of times a missed pickup appears (given codes
1-3) for a certain driver (name) within a date range. This is what I've
figured out so far:

=COUNTIF(K4:K33,"james")*AND(COUNTIF(M4:M33,"1")*A ND(COUNTIF(E4:E33,"1")))

This works halfway, but the data I need summarized is broken down into three
codes (the second countif section - choice of 1, 2, or 3). The third countif
section is my way of separating the weeks of the month (1-4). Currently, this
formula is counting even just the appearance of the name as 1 entry in
addition to the actual data codes I want counted. I may have gone the long
way around the mountain to do this, but I am stuck trying to figure out a way
to get this done. Ideally, I'd like to just put in a date range and name as
conditions and a code to search for and count.

Thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Conditional Count (Array Formula?)

Y'all are awesome! Thanks so much!!
--
Debbie


"JLatham" wrote:

Try
=SUMPRODUCT(--($K$4:$K$33="james"),--($M$4:$M$33,=1),--($E$4:$E$33=1))
You can change the various parameters to look for other people, other codes
(2, 3) besides 1 and other weeks of the month.
You could even make it flexible and refer to values in another set of cells
to look data up for others in one cell. Example: you put the formula above
on the same sheet with the data in E, K and M in it- in A1 you type in a
name, in B1 you put in one of the codes (1 2 or 3) and in C1 you put in the
week of the month to look at: then in A2 you put in
=SUMPRODUCT(--($K$4:$K$33=A1),--($M$4:$M$33,=B1),--($E$4:$E$33=C1))
and A2 will give you a count of the matches of all 3 entries on rows 4:33.

"Debbie Mason" wrote:

Hello all,

I am trying to create a weekly summary page on a monthly missed pickup
report that counts the number of times a missed pickup appears (given codes
1-3) for a certain driver (name) within a date range. This is what I've
figured out so far:

=COUNTIF(K4:K33,"james")*AND(COUNTIF(M4:M33,"1")*A ND(COUNTIF(E4:E33,"1")))

This works halfway, but the data I need summarized is broken down into three
codes (the second countif section - choice of 1, 2, or 3). The third countif
section is my way of separating the weeks of the month (1-4). Currently, this
formula is counting even just the appearance of the name as 1 entry in
addition to the actual data codes I want counted. I may have gone the long
way around the mountain to do this, but I am stuck trying to figure out a way
to get this done. Ideally, I'd like to just put in a date range and name as
conditions and a code to search for and count.

Thanks in advance.

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
array formula count results of two tests windsurferLA Excel Worksheet Functions 2 July 26th 06 12:33 AM
Conditional Formula - No array systemx Excel Worksheet Functions 4 March 23rd 06 05:11 PM
Count If Array Formula carl Excel Worksheet Functions 2 November 21st 05 08:52 PM
How can you use count with an array formula similar to using sum PhilH Excel Worksheet Functions 3 June 27th 05 08:00 AM
Formula to count number of dates in an array Lilasviolet Excel Worksheet Functions 2 April 7th 05 07:44 PM


All times are GMT +1. The time now is 04:35 AM.

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"