Sumproduct question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What am I doing wrong here:

=SUMPRODUCT(AL3:AL84>="3/1/2006")*(AP3:AP84=6)

I want to count the number of times AL3:AL84 >= 3/1/2006 AND AP3:AP84 = 6.
I keep getting ZERO when this is a non zero number. I have entered it with
CTRL SHIFT ENTER (I think that's it) and it has {} around it.

Thanks,
Barb Reinhardt
 
Try =SUMPRODUCT(--(AL3:AL84>=date(2006,3,1)),--(AP3:AP84=6))
I am assuming you use US date convention
Confirm with simple ENTER
 
I'd try =sumproduct(--(al3:al84>=date(2006,3,1),--(ap3:ap84=6)) with no array
required. "3/1/2006" is forcing a text comparison; date(2006,3,1) converts
to Excel's numeric representation of the date 3/1/06.
 
Barb,

Try this,

=SUMPRODUCT((AL3:AL84>=DATE(2006,3,1))*(AP3:AP84=6))

You were missing some parenthesis and when you put "3/1/2006" in, th
formula is looking for a text string equal to that but excel sees date
as numbers not text. You could also type the date in another cell an
refer to it in the formula rather than using the DATE formula.

HTH

Stev
 
You need more parenthesis and you need to convert the text "3/1/2006"

=SUMPRODUCT((AL3:AL84>=--"3/1/2006")*(AP3:AP84=6))

although this is better

=SUMPRODUCT((AL3:AL84>=--"2006-03-01")*(AP3:AP84=6))

since it will work with different regional settings

no need to array enter it


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com
 
I'd use:

=sumproduct(--(al3:al84>=date(2006,3,1)),--(ap3:ap84=6))

And ap3:ap84 contains the number 6, not the string '6 (as text), right?
 
Thanks everyone. Can someone explain what the -- in the sumproduct formula
means?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sumproduct W-t-d 4
Sumproduct Across A Row 11
Any Way Around 7-Nested Function Limit? 9
Sumproduct Help! 2
Multiple arguments 1
Sumproduct 6
Conditional Arrays 1
Sumproduct query 9

Back
Top