View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
G Lykos G Lykos is offline
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