Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 74
Default Subtotal of Abs of a range?

Greetings! Am stumped. Need a sum of the absolute value of row-filtered
elements in a column. SUBTOTAL does this admirably, but it appears that
SUBTOTAL does not accommodate anything but a simple range as it target, in
the pseudo-syntax SUBTOTAL(Function,Range). SUM, on the other hand, allows
for a function such as ABS to be embedded as its argument, but does not
screen out filtered values.

A work-around is to create an intermediate column that ABS's the original
column and then apply SUBTOTAL to it. However, in the interest of
compactness, the question becomes: is there a way to cause SUM to skip
filtered-out elements, or a way to create the equivalent of
SUBTOTAL(9,ABS(Range)).

Thanks!
George


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 74
Default Subtotal of Abs of a range?

Incidentally, SUM as imagined here would be expressed as {SUM(ABS(Range))},
an array formula, that in this form doesn't skip filtered-out rows. It
appears that SUBTOTAL does not support array usage (or is it vice versa?).


"G Lykos" wrote in message
...
Greetings! Am stumped. Need a sum of the absolute value of row-filtered
elements in a column. SUBTOTAL does this admirably, but it appears that
SUBTOTAL does not accommodate anything but a simple range as it target, in
the pseudo-syntax SUBTOTAL(Function,Range). SUM, on the other hand,

allows
for a function such as ABS to be embedded as its argument, but does not
screen out filtered values.

A work-around is to create an intermediate column that ABS's the original
column and then apply SUBTOTAL to it. However, in the interest of
compactness, the question becomes: is there a way to cause SUM to skip
filtered-out elements, or a way to create the equivalent of
SUBTOTAL(9,ABS(Range)).

Thanks!
George




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 74
Default Subtotal of Abs of a range?

{=SUM(ABS(Range))}, to be more exact ...


"G Lykos" wrote in message
...
Incidentally, SUM as imagined here would be expressed as

{SUM(ABS(Range))},
an array formula, that in this form doesn't skip filtered-out rows. It
appears that SUBTOTAL does not support array usage (or is it vice versa?).


"G Lykos" wrote in message
...
Greetings! Am stumped. Need a sum of the absolute value of

row-filtered
elements in a column. SUBTOTAL does this admirably, but it appears that
SUBTOTAL does not accommodate anything but a simple range as it target,

in
the pseudo-syntax SUBTOTAL(Function,Range). SUM, on the other hand,

allows
for a function such as ABS to be embedded as its argument, but does not
screen out filtered values.

A work-around is to create an intermediate column that ABS's the

original
column and then apply SUBTOTAL to it. However, in the interest of
compactness, the question becomes: is there a way to cause SUM to skip
filtered-out elements, or a way to create the equivalent of
SUBTOTAL(9,ABS(Range)).

Thanks!
George






  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Subtotal of Abs of a range?

Try this:

The range to sum is B2:B10 (filtered or unfiltered):

Array entered:

=SUM(IF(SUBTOTAL(3,OFFSET(B2:B10,ROW(B2:B10)-MIN(ROW(B2:B10)),,1)),ABS(B2:B10)))

Biff

"G Lykos" wrote in message
...
Greetings! Am stumped. Need a sum of the absolute value of row-filtered
elements in a column. SUBTOTAL does this admirably, but it appears that
SUBTOTAL does not accommodate anything but a simple range as it target, in
the pseudo-syntax SUBTOTAL(Function,Range). SUM, on the other hand,
allows
for a function such as ABS to be embedded as its argument, but does not
screen out filtered values.

A work-around is to create an intermediate column that ABS's the original
column and then apply SUBTOTAL to it. However, in the interest of
compactness, the question becomes: is there a way to cause SUM to skip
filtered-out elements, or a way to create the equivalent of
SUBTOTAL(9,ABS(Range)).

Thanks!
George




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 i insert a subtotal from a range of dates rosa Excel Worksheet Functions 1 May 24th 06 06:58 PM
HOW CAN I INSERT A SUBTOTAL FROM A RANGE OF DATES rosa Excel Worksheet Functions 0 May 24th 06 05:47 PM
Subtotal Range of Alphanumeric References girthhart Excel Worksheet Functions 2 January 30th 06 01:47 PM
subtotal a range of cells on a different worksheet cheryl Excel Worksheet Functions 0 November 2nd 05 08:37 PM
SUBTOTAL(9,range) Does NOT work in AutoFilter Dane Excel Worksheet Functions 5 September 4th 05 06:06 PM


All times are GMT +1. The time now is 12:54 AM.

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"