Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How could I sum visible negative cells in a single column. Could it be
possible with a combination of subtotal and sumif function. Here is my take on this problem but it fails miserably =IF(SUMIF(AL2:AL278,"<0",AL2:AL278),SUBTOTAL(109,A L2:AL278)) Please your help is needed. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
<<How could I sum visible negative cells in a single column?
The below formula will do... =SUMIF(A:A,"<0") If this post helps click Yes --------------- Jacob Skaria "shbutt" wrote: How could I sum visible negative cells in a single column. Could it be possible with a combination of subtotal and sumif function. Here is my take on this problem but it fails miserably =IF(SUMIF(AL2:AL278,"<0",AL2:AL278),SUBTOTAL(109,A L2:AL278)) Please your help is needed. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Oops...Please ignore the post....
"Jacob Skaria" wrote: <<How could I sum visible negative cells in a single column? The below formula will do... =SUMIF(A:A,"<0") If this post helps click Yes --------------- Jacob Skaria "shbutt" wrote: How could I sum visible negative cells in a single column. Could it be possible with a combination of subtotal and sumif function. Here is my take on this problem but it fails miserably =IF(SUMIF(AL2:AL278,"<0",AL2:AL278),SUBTOTAL(109,A L2:AL278)) Please your help is needed. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The range being A2:A100
=SUMPRODUCT(SUBTOTAL(109,OFFSET(A2:A100,ROW(A2:A10 0)-ROW(A2),0,1)),--(A2:A100<0)) If this post helps click Yes --------------- Jacob Skaria "shbutt" wrote: How could I sum visible negative cells in a single column. Could it be possible with a combination of subtotal and sumif function. Here is my take on this problem but it fails miserably =IF(SUMIF(AL2:AL278,"<0",AL2:AL278),SUBTOTAL(109,A L2:AL278)) Please your help is needed. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks Jacob Skaria for your solution. Here is another formula which fits the
bill but I have used yours which is easy to understand and write. The googled lengthy formula is: =SUMPRODUCT(SUBTOTAL(3,OFFSET(A2:A100,ROW(A2:A100)-MIN(ROW(A2:A100)),0,1)),--(A2:A100<0),A2:A100) Regards. "Jacob Skaria" wrote: The range being A2:A100 =SUMPRODUCT(SUBTOTAL(109,OFFSET(A2:A100,ROW(A2:A10 0)-ROW(A2),0,1)),--(A2:A100<0)) If this post helps click Yes --------------- Jacob Skaria "shbutt" wrote: How could I sum visible negative cells in a single column. Could it be possible with a combination of subtotal and sumif function. Here is my take on this problem but it fails miserably =IF(SUMIF(AL2:AL278,"<0",AL2:AL278),SUBTOTAL(109,A L2:AL278)) Please your help is needed. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If Formula (visible cells only) | Excel Discussion (Misc queries) | |||
Formula only for visible Cells | Excel Discussion (Misc queries) | |||
When creating a formula how do you select only visible cells | Excel Discussion (Misc queries) | |||
How can I get a formula to work on visible cells with autofilter? | Excel Discussion (Misc queries) | |||
Help to adapt Formula syntax to work with Visible Filtered Cells | Excel Worksheet Functions |