SUMPRODUCT question

  • Thread starter Thread starter engteng
  • Start date Start date
E

engteng

=SUMPRODUCT(--('Raw Data'!$E1:$E65535<=4))

How do I change the 65535 in above formula to dynamic variable?


Regards,
Tee
 
Untested but should work - assuming that c5 has the dynamic number in it.
=SUMPRODUCT(--(indirect("Raw Data'!$E1:$E"&c5)<=4))
 
I have tested but not work #REF! error.

Untested but should work - assuming that c5 has the dynamic number in it.
=SUMPRODUCT(--(indirect("Raw Data'!$E1:$E"&c5)<=4))
--
Wag more, bark less







- Show quoted text -
 
give this a try:

create a named range (insert->name->define) with the following ( i used rng as
the name):
(this creates a dynamic range)

=OFFSET('Raw Data'!$E$1,1,0,COUNTA('Raw Data'!$E:$E)-1,1)

then for your formula:

=SUMIF(rng,"<=4",rng)
or
=SUMPRODUCT(--(rng)*(rng<=4))


--


Gary


I have tested but not work #REF! error.
 

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

Back
Top