WEEKNUM and SUMPRODUCT
You know you can't <g
Try
=SUMPRODUCT((1+INT(($B1:$M1-(DATE(YEAR($B1:$M1),1,2)
-WEEKDAY(DATE(YEAR(TODAY()),1,1))))/7)=7)*(A3:A10="New York"),B3:M10)
--
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"Doug VanDerMark" wrote in message
...
Can they be used together? Excel 2003 is my version. I want to count the
number of transactions per week for each of my offices.
Basically, I am not trying to make this fancy at all.
Offices are listed in rows and the weeks are in the columns.
02/11/2007 02/18/2007
02/17/2007 02/24/2007
------------------------------------------------------------------------
New York 5 23
------------------------------------------------------------------------
St. Louis 17 14
------------------------------------------------------------------------
02/11/2007 is week 7
02/18/2007 is week 8
Something like if Office = "New York" and Weeknum = 7, etc.
Thanks in advance
|