ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   SUMPRODUCT question (https://www.excelbanter.com/excel-programming/412370-sumproduct-question.html)

[email protected]

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

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


Regards,
Tee

Brad

SUMPRODUCT question
 
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


" wrote:

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

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


Regards,
Tee


[email protected]

SUMPRODUCT question
 
I have tested but not work #REF! error.

On Jun 11, 9:51*am, Brad wrote:
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



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


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


Regards,
Tee- Hide quoted text -


- Show quoted text -



Gary Keramidas

SUMPRODUCT question
 
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


wrote in message
...
I have tested but not work #REF! error.

On Jun 11, 9:51 am, Brad wrote:
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



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


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


Regards,
Tee- Hide quoted text -


- Show quoted text -




Brad

SUMPRODUCT question
 
Thas been tested and does work
=SUMPRODUCT(--(INDIRECT("'Raw Data'!E2:E"&B4)<=4))



--
Wag more, bark less


" wrote:

I have tested but not work #REF! error.

On Jun 11, 9:51 am, Brad wrote:
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



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


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


Regards,
Tee- Hide quoted text -


- Show quoted text -





All times are GMT +1. The time now is 02:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com