Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default sumproduct using variable range

Hi All, and thanks in advance
I am using the formula as follow and I wonder if there is any way to make it
work when the range is variable
=-SUMPRODUCT(--(N7:N1000<0),--(BA7:BA1000<"BD"),--(N7:N1000))

Any help really appreciate

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default sumproduct using variable range


Hi,

try 'Dynamic ranges'
(http://www.contextures.com/xlNames01.html#Dynamic) making sure the
ranges have the same length
or use a range like A1:A65535 which will cover an entire column in XL
versions before XL 2007


--
Pecoflyer

Cheers -
*_Membership_is_free_* & allows file upload -faster and better answers
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=47109

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default sumproduct using variable range

Hi,
Thank you for your answer, I thought on that solution, what happens is that
I have an userform that each time a new project is entered it copy the data
in the summary sheet and then create a new tab for that project and copy the
information there as well, I was thinking that maybe I will be able to modify
that formula to include an N7:N range, or something like thta

"Pecoflyer" wrote:


Hi,

try 'Dynamic ranges'
(http://www.contextures.com/xlNames01.html#Dynamic) making sure the
ranges have the same length
or use a range like A1:A65535 which will cover an entire column in XL
versions before XL 2007


--
Pecoflyer

Cheers -
*_Membership_is_free_* & allows file upload -faster and better answers
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=47109


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default sumproduct using variable range

Hi,

If there are no spaces before the last entry you can use

=-SUMPRODUCT(--(OFFSET(N7,0,0,COUNTA(N7:N5000))<0),--(OFFSET(BA7,0,0,COUNTA(BA7:BA5000))<"BD"),--(OFFSET(N7,0,0,COUNTA(N7:N5000))))

If this helps, please click the Yes button

Cheers,
Shane Devenshire

"Eduardo" wrote in message
...
Hi All, and thanks in advance
I am using the formula as follow and I wonder if there is any way to make
it
work when the range is variable
=-SUMPRODUCT(--(N7:N1000<0),--(BA7:BA1000<"BD"),--(N7:N1000))

Any help really appreciate

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default sumproduct using variable range

Hi Shane,
In the formula below you still is considering a # or rows i.e. N5000, what
if the rows go beyong that point

"Shane Devenshire" wrote:

Hi,

If there are no spaces before the last entry you can use

=-SUMPRODUCT(--(OFFSET(N7,0,0,COUNTA(N7:N5000))<0),--(OFFSET(BA7,0,0,COUNTA(BA7:BA5000))<"BD"),--(OFFSET(N7,0,0,COUNTA(N7:N5000))))

If this helps, please click the Yes button

Cheers,
Shane Devenshire

"Eduardo" wrote in message
...
Hi All, and thanks in advance
I am using the formula as follow and I wonder if there is any way to make
it
work when the range is variable
=-SUMPRODUCT(--(N7:N1000<0),--(BA7:BA1000<"BD"),--(N7:N1000))

Any help really appreciate


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 with a variable range rhowell100103 Excel Worksheet Functions 3 June 9th 08 03:23 AM
SUMIF/SUMPRODUCT Criteria are Variable Sized Thomas [PBD] Excel Discussion (Misc queries) 3 May 19th 08 05:19 PM
sumproduct with one variable criteria? Cif Excel Worksheet Functions 11 September 25th 06 07:49 PM
SUMPRODUCT WITH A VARIABLE CRITERIA? Cif Excel Worksheet Functions 2 September 25th 06 02:29 PM
sumproduct - reading a variable value redneck joe Excel Discussion (Misc queries) 3 May 24th 06 08:02 PM


All times are GMT +1. The time now is 03:12 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"