sum of absolute value of each cell of a column..

  • Thread starter Thread starter pls123
  • Start date Start date
P

pls123

hi all !!
i try in workbook function, and i try in vbe but i can't do it by myself...

i need the sum of the absolute value of each cell in range L2:L6..
if you can do it in workbook function ,please add a INDIRECT in your
fornula, because it is a range that has occasional shift.
txx !!
paolo
 
Is this what you want
=SUMPRODUCT((ABS(B3:B9)))

where e8 has b3:b9
=SUMPRODUCT((ABS(INDIRECT(E8))))
 
tx don i found it..
=SUMPRODUCT(ABS(INDIRECT("A1:A9")))

sumproduct was what i missed !!!
good holiday !!
 
Why are you using the Volatile INDIRECT function in that formula? This
formula will do the same thing...

=SUMPRODUCT(ABS(A1:A9))
 
hi rick !!
the indicated range has cells that are subject to a
insert shift xldown in the vbe..
so i need to use INDIRECT for avoiding the references to switch..

i did not try for SUMPRODUCT but i think it works the same way..

by !!
 
Back
Top