Convert SUMPRODUCT to COUNT

L

lunker55

I have a formula where I need to count instead of sum. Is there a way to do
this?

Joe

=SUMPRODUCT((YEAR('2003-2004'!$A$4:$A$10000)=(Summary!$B$4))*(MONTH('2003-20
04'!$A$4:$A$10000)=(Summary!$D$3))*(('2003-2004'!$I$4:$I$10000)=E4)*'2003-20
04'!$E$4:$E$10000)


I tried:

{=SUM((MONTH('2003-2004'!$A$4:$A$10000)=(Summary!$D$3)*(YEAR('2003-2004'!$A$
4:$A$10000)=(Summary!$B$4)*(('2003-2004'!$I$4:$I$10000)=(Summary!E4)))))}
 
A

Andy B

Hi

Just take out the bit that is the summing part.
If it's '2003-2004'!$E$4:$E$10000, just drop it off the end to become:
=SUMPRODUCT((YEAR('2003-2004'!$A$4:$A$10000)=(Summary!$B$4))*(MONTH('2003-20
04'!$A$4:$A$10000)=(Summary!$D$3))*(('2003-2004'!$I$4:$I$10000)=E4))
 
L

lunker55

Thank you VERY much Andy!

Joe

Andy B said:
Hi

Just take out the bit that is the summing part.
If it's '2003-2004'!$E$4:$E$10000, just drop it off the end to become:
=SUMPRODUCT((YEAR('2003-2004'!$A$4:$A$10000)=(Summary!$B$4))*(MONTH('2003-20
04'!$A$4:$A$10000)=(Summary!$D$3))*(('2003-2004'!$I$4:$I$10000)=E4))


--
Andy.



=SUMPRODUCT((YEAR('2003-2004'!$A$4:$A$10000)=(Summary!$B$4))*(MONTH('2003-20
04'!$A$4:$A$10000)=(Summary!$D$3))*(('2003-2004'!$I$4:$I$10000)=E4)*'2003-20
{=SUM((MONTH('2003-2004'!$A$4:$A$10000)=(Summary!$D$3)*(YEAR('2003-2004'!$A$
 

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

Top