count if
Actually, that new formula should be in G1 :\
New formula for G1:
G1:
=SUMPRODUCT(--($B$1:$B$23=F1)*($C$1:$C$23="Closed")*($A$1:$A$23 =$I$2)*($A$1:$A$23<=$J$2))
Sorry for any confusion.
***********
Regards,
Ron
XL2002, WinXP-Pro
"Ron Coderre" wrote:
Try this:
Using the same example I posted earlier.
I1: StartDate
I2: 01/10/2006
J1: EndDate
J2: 01/15/2006
new formula for G2:
G2:
=SUMPRODUCT(--($B$1:$B$23=F1)*($C$1:$C$23="Closed")*($A$1:$A$23 =$I$2)*($A$1:$A$23<=$J$2))
Does that help?
***********
Regards,
Ron
XL2002, WinXP-Pro
"Jim" wrote:
Perfect!!!
Thanks €“ one more question. How would the sumproduct look if I wanted to
match a range of dates from column A. Say the date range is Jan 8, 2006
through Jan 14, 2006.
"Ron Coderre" wrote:
Try something like this:
Using your example data in Cells A1:C23
F1: Store 1
G1: =SUMPRODUCT(--($B$1:$B$23=F1)*($C$1:$C$23="Closed"))
Copy that formula down as far as needed
Does that help?
***********
Regards,
Ron
XL2002, WinXP-Pro
"Jim" wrote:
Hello,
The help I need is in writing a formula that will count the number of times
the store is listed (Column B) when it matches with closed (Column C).
On the table listed below I will return the data using a match.
From this table
A B C
1/8/2006 9:45 Store 1 Closed
1/8/2006 9:57 Store 2 Closed
1/8/2006 10:05 Store 3 Closed
1/8/2006 10:09 Store 4 Closed
1/8/2006 10:15 Store 5 Closed
1/8/2006 10:24 Store 1 Closed
1/8/2006 10:36 Store 2 In Progress
1/8/2006 10:41 Store 3 In Progress
1/8/2006 10:50 Store 4 Closed
1/8/2006 10:58 Store 5 Closed
1/8/2006 10:59 Store 1 Closed
1/8/2006 11:15 Store 2 Closed
1/8/2006 11:22 Store 3 In Progress
1/8/2006 11:24 Store 4 In Progress
1/8/2006 11:33 Store 5 Closed
1/8/2006 11:51 Store 1 Closed
1/8/2006 11:56 Store 2 Closed
1/8/2006 11:57 Store 3 Closed
1/8/2006 12:03 Store 4 Closed
1/8/2006 12:16 Store 5 Not Started
1/8/2006 12:23 Store 1 Closed
1/8/2006 12:28 Store 2 Closed
1/8/2006 12:57 Store 3 Closed
To this table
A B C
1/8/2006 9:45 Store 1 5
1/8/2006 9:57 Store 2 4
1/8/2006 10:05 Store 3 3
1/8/2006 10:09 Store 4 3
|