P
Philip
Some time ago I asked for help on the problem below. People offered
SUMPRODUCT as a solution (which worked excellently in all the other columns
in my table (thanks to all esp those who explained how it worked), except
the one I needed. Harlan gave me
=SUM(IF($C$2:$C$11=A3,1/(MMULT(--(TEXT($B$2:$B$11,"yyyymmdd")&$C$2:$C$11=TRA
NSPOSE(TEXT($B$2:$B$11,"yyyymmdd")&$C$2:$C$11)),--($C$2:$C$11=A3)))))
which also worked perfectly (thanks!), but my client has changed her needs.
Now, in B3 she only wants to count the first times a combination of "Meeting
Date" & "Contract" appear when "Original Issue Date" is blank.
Harlan's formula gives the number of times "Meeting Date" & "Contract" first
appear for the whole data table (every row ending in "y", and try as I
might, I can't alter it to give the results I need (just those rows ending
in "yz").
In the example below, A2:B:7 is the "report table" and A:9:C25 is the "data
table" (which will extend below row 25 eventually). I have typed in the
counts that I need in B3:B6 with the results of Harlan's formula in
parentheses.
A B
C
June 2003
Meetings this month (Other "report table"
columns removed for clarity)
Landscape 0 (2)
Sports 1 (3)
Weeds 2 (4)
Managers 0 (0)
Total 3 (9)
(blank row)
Original Issue Date Meeting Date Contract
6 May 03 6 May 03 Landscape
y
6 May 03 6 May 03 Landscape
6 May 03 6 May 03 Landscape
23 May 03 23 May 03 Landscape
y
23 May 03 23 May 03 Landscape
6 May 03 6 May 03 Sports
y
6 May 03 6 May 03 Sports
6 May 03 6 May 03 Sports
23 May 03 23 May 03 Sports
y
23 May 03 23 May 03 Sports
2 May 03 2 May 03 Weeds
y
22 May 03 12 Jun 03 Weeds
y
5 Jun 03 Weeds
yz
17 Jun 03 Weeds
yz
17 Jun 03 Weeds
17 Jun 03 Sports
yz
Thanks in advance,
Philip Hinton
SUMPRODUCT as a solution (which worked excellently in all the other columns
in my table (thanks to all esp those who explained how it worked), except
the one I needed. Harlan gave me
=SUM(IF($C$2:$C$11=A3,1/(MMULT(--(TEXT($B$2:$B$11,"yyyymmdd")&$C$2:$C$11=TRA
NSPOSE(TEXT($B$2:$B$11,"yyyymmdd")&$C$2:$C$11)),--($C$2:$C$11=A3)))))
which also worked perfectly (thanks!), but my client has changed her needs.
Now, in B3 she only wants to count the first times a combination of "Meeting
Date" & "Contract" appear when "Original Issue Date" is blank.
Harlan's formula gives the number of times "Meeting Date" & "Contract" first
appear for the whole data table (every row ending in "y", and try as I
might, I can't alter it to give the results I need (just those rows ending
in "yz").
In the example below, A2:B:7 is the "report table" and A:9:C25 is the "data
table" (which will extend below row 25 eventually). I have typed in the
counts that I need in B3:B6 with the results of Harlan's formula in
parentheses.
A B
C
June 2003
Meetings this month (Other "report table"
columns removed for clarity)
Landscape 0 (2)
Sports 1 (3)
Weeds 2 (4)
Managers 0 (0)
Total 3 (9)
(blank row)
Original Issue Date Meeting Date Contract
6 May 03 6 May 03 Landscape
y
6 May 03 6 May 03 Landscape
6 May 03 6 May 03 Landscape
23 May 03 23 May 03 Landscape
y
23 May 03 23 May 03 Landscape
6 May 03 6 May 03 Sports
y
6 May 03 6 May 03 Sports
6 May 03 6 May 03 Sports
23 May 03 23 May 03 Sports
y
23 May 03 23 May 03 Sports
2 May 03 2 May 03 Weeds
y
22 May 03 12 Jun 03 Weeds
y
5 Jun 03 Weeds
yz
17 Jun 03 Weeds
yz
17 Jun 03 Weeds
17 Jun 03 Sports
yz
Thanks in advance,
Philip Hinton