Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Subtotal data excluding negitive numbers.

I have a spreadsheet contains lots information, each one linked to
some other spreadsheet. In column “A” some numbers are positive and
some are negative. What I want to do is to subtotal(9,A3:A100) to show
the total numbers when I filter something out. While I don’t want
these negative numbers to be calculated. I knew if I add a new column
can resolve this problem, but if I the spreadsheet does not allow me
to do that change, how can I put kind of formula in one single cell to
show the subtotal result without adding the negative numbers?

I have tried sumproduct but result only showing the full sum whatever
how you filter it out.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default Subtotal data excluding negitive numbers.

Try

=SUMPRODUCT(--(A3:A1000),SUBTOTAL(9,OFFSET(A3:A100,ROW(A3:A100)-ROW(A3),0,1)))

Hope this helps,

Hutch

"Tony" wrote:

I have a spreadsheet contains lots information, each one linked to
some other spreadsheet. In column €œA€ some numbers are positive and
some are negative. What I want to do is to subtotal(9,A3:A100) to show
the total numbers when I filter something out. While I dont want
these negative numbers to be calculated. I knew if I add a new column
can resolve this problem, but if I the spreadsheet does not allow me
to do that change, how can I put kind of formula in one single cell to
show the subtotal result without adding the negative numbers?

I have tried sumproduct but result only showing the full sum whatever
how you filter it out.

Thanks.
.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Subtotal data excluding negitive numbers.

On Dec 1, 5:20*pm, Tom Hutchins
wrote:
Try

=SUMPRODUCT(--(A3:A1000),SUBTOTAL(9,OFFSET(A3:A100,ROW(A3:A100)-ROW(A3),0,*1)))

Hope this helps,

Hutch



"Tony" wrote:
I have a spreadsheet contains lots information, each one linked to
some other spreadsheet. In column “A” some numbers are positive and
some are negative. What I want to do is to subtotal(9,A3:A100) to show
the total numbers when I filter something out. While I don’t want
these negative numbers to be calculated. I knew if I add a new column
can resolve this problem, but if I the spreadsheet does not allow me
to do that change, how can I put kind of formula in one single cell to
show the subtotal result without adding the negative numbers?


I have tried sumproduct but result only showing the full sum whatever
how you filter it out.


Thanks.
.- Hide quoted text -


- Show quoted text -


Seems it's not working ... :(
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 153
Default Subtotal data excluding negitive numbers.

In column “A” some numbers are positive and
some are negative. What I want to do is to subtotal(9,A3:A100) to show
the total numbers when I filter something out.
... how can I put kind of formula in one single cell to
show the subtotal result without adding the negative numbers?


One way is to use something like
=SUMIF($A:$A,"0")

Another way is to auto-filter column A, choosing
Custom is greater than 0
and
=SUBTOTAL(109,$A:$A)
The code 109 is like 9, but it "ignores hidden values" (ref.: Excel's
built-in Help).
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
Excel change a group of positive numbers to negitive numbers Clare Jones Excel Discussion (Misc queries) 3 July 2nd 09 04:25 PM
negitive and possitive numbers [email protected] Excel Discussion (Misc queries) 4 May 6th 09 04:03 PM
spreadsheet with negitive numbers bbrodsky Excel Discussion (Misc queries) 1 May 6th 09 12:48 PM
How do I convert a column of positive numbers to negitive numbers JMason Excel Worksheet Functions 2 January 22nd 09 02:12 AM
How do I change numbers from positive to negitive Debi Excel Worksheet Functions 2 October 11th 05 06:09 PM


All times are GMT +1. The time now is 04:14 PM.

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

About Us

"It's about Microsoft Excel"