Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default SUMPRODUCT question

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

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


Regards,
Tee
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 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 -


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default 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 -



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default 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 -



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SumProduct question wilson Excel Discussion (Misc queries) 4 November 14th 09 06:14 PM
Sumproduct question ace Excel Discussion (Misc queries) 2 April 6th 09 09:43 PM
SumProduct Question mldancing Excel Discussion (Misc queries) 15 April 6th 07 03:52 AM
A SUMPRODUCT question Bernard Liengme Excel Discussion (Misc queries) 3 October 17th 06 06:36 PM
Sumproduct Question Dthmtlgod[_3_] Excel Programming 2 December 15th 04 10:03 PM


All times are GMT +1. The time now is 06:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"