View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pedro Dias Ferreira Pedro Dias Ferreira is offline
external usenet poster
 
Posts: 6
Default Countif with multiple criteria and date range

On Nov 13, 11:48*am, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
It's always easiest if you tell us what you've tried and what went wrong
with that. *Then we can help you to cure the problem.
You say:
"I havent't managed to find one formula that could provide any useful
results.",
but I guess that if you had done you wouldn't have asked the question.
Tell us what you've tried and in what way it went wrong, then we can tell
you how to improve it.

Why not
*=SUMPRODUCT(--(B1:B10=C$1),--(B1:B10<C$2),A1:A10) ?

Adjust the ranges to suit, and adjust the = and < depending on whether you
want your limits to be inclusive or exclusive.
--
David Biddulph

"Pedro Dias Ferreira" wrote in ...

On Nov 13, 10:57 am, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
You seem not to have sent the part of the message where you told us what
formula was giving you trouble, what the data values are, what result
you
got, and what result you expected.
--
David Biddulph


"Pedro Dias Ferreira" wrote in
...


Hi,


I have been battling a problem for the last couple of days and can't
seem to be able to solve it.


I have a column with data regarding a call centre. In one of the
columns I have the date of a phone call and in another one I have the
call outcome. I want to group this by week now, defining ranges of
dates and the outcome for the calls that were made then.


Have tried several different ways with sumproduct but the problem
seems to be in Excel 2003 having some problem with the dates. By the
way, I have the dates that define the ranges in seprate cells and
refer to those cells when defining ranges.


Any help would be more than appreciated


thanks


Pedro

Well,


I havent't managed to find one formula that could provide any useful
results. Countif can't be used because of the limit on the number of
criteria and I don't seem to work well with sumproduct
Data is organised like this:


Column A - Call Outcome
Column B - Date of call


Cells c1 - start of week 1
cell c2 - end of week 1
cell d1 - the call outcome i want to count


is this useful?


thanks a lot


I started digging several of the old spreadsheets :)
One of the attemps was:
=SUMPRODUCT((AD4:AD33=B1)*(AD4:AD33<=B2)*(Live!$R $4:$R$33=B14)) which
delivered a N/A
the final bit refers to the place where the call outcome is and b14 a
specific call outcome

As for the formula u proposed David, what does the A1:A10 at the end
refers to?

Thanks a lot for your help David. Any help u can give is great!!!