sumproduct using variable range

E

Eduardo

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
 
E

Eduardo

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
 
S

Shane Devenshire

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
 
E

Eduardo

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

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