Thread: SumIf Help??
View Single Post
  #9   Report Post  
Maddie
 
Posts: n/a
Default

Thank you so much. It worked. I almost had it. I appreciate you sticking
with me on this. :)

"bj" wrote:

try
=sum(if(O2:O200=I7,IF(P2:P200=I6,IF(N2:N200=DATEV ALUE("4/15/2005"),1,0)))*(if(O2:O200=I7,IF(P2:P200=I6,IF(N2:N 200<DATEVALUE("4/21/2005"),1,0))))
entered as an array

"Maddie" wrote:

I can't seem to get it to work. The following formula brings back exactly
what I need, but it doesn't have the date range. Can you show me how to just
add this or will sumproduct be the best:

=sum(if(O2:O200=I7,IF(P2:P200=I6,IF(N2:N200=DATEV ALUE("4/15/2005"),1,0))))

N2:N200 = DATES
I6 = YES
I7 = 4
The above counts each cell with the date after 04-15, but when I do another
week it keeps adding to this. I need it between 04-15-05 and 04-21-05??
"bj" wrote:

one possibility would be to use Sumproduct as in
=sumproduct(--(O2:O200=04/01/2005),(R2:R200),--(O2:O20004/07/05),--(range
="pp/nc") )
You may have to use the seriallized dates, dates do strange things in my
computer.

"Maddie" wrote:

I have the following formula set-up to calculate a certain cell range based
on the date range. I also would like to put in one criteria, but I can't
seem to get it to work.

Help?

=SUMIF(O2:O200,"=04/01/2005",R2:R200)-SUMIF(O2:O200,"04/07/05",R2:R200)

Example - If the date range falls between these dates and is coded "pp/nc".
How do I add in the other criteria???