How do I select a range?

D

Dan

I have a function which generates monotonic series. The numbers in column D
start positive and at some point go from positive to negative. I use
=MATCH(0,D:D,-1)to find the row number which holds the first negative number.
I want to find the sum of all positive numbers. How do I do that? Any help is
appreciated.
 
S

Shane Devenshire

Hi,

You can use

=SUMIF(D:D,">0")


And as you can see the sum of all negative numbers would be
=SUMIF(D:D,"<0")
 

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