Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dan dan is offline
external usenet poster
 
Posts: 866
Default How do I select a range?

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.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default How do I select a range?

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")

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Dan" wrote:

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.

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
How can change range to select active rows instead of :=Range("S10 ldiaz Excel Discussion (Misc queries) 7 August 29th 08 03:52 PM
When entering data into a range of cells, select the entire range. Q Excel Discussion (Misc queries) 0 September 26th 07 04:36 AM
Select a range [email protected] Excel Discussion (Misc queries) 1 March 22nd 07 10:16 AM
Select Using Range vijaya Excel Discussion (Misc queries) 1 November 2nd 05 07:33 PM
Select a range Kevin Excel Discussion (Misc queries) 3 February 18th 05 11:04 PM


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