Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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). |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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. . |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 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. .- Hide quoted text - - Show quoted text - Seems it's not working ... :( |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel change a group of positive numbers to negitive numbers | Excel Discussion (Misc queries) | |||
negitive and possitive numbers | Excel Discussion (Misc queries) | |||
spreadsheet with negitive numbers | Excel Discussion (Misc queries) | |||
How do I convert a column of positive numbers to negitive numbers | Excel Worksheet Functions | |||
How do I change numbers from positive to negitive | Excel Worksheet Functions |