Hi there,
I have the following simple problem setup for two columns let's say A and B:
01-02-2011 -534
01-02-2011 53
01-02-2011 43
02-02-2011 25
02-02-2011 -3523
02-02-2011 532
02-02-2011 3
I need to calculate the absolute value for each date in the summing of column B.
for example if u sum the whole column B as it is above then you get -3401. What I want is not to get rid of this minus-sign. But i want to get rid of the minus for each date-sum, for instance:
01-02-2011 -534
01-02-2011 53
01-02-2011 43
the output/number i want from this is abs(-534+53+43)=438
then for
02-02-2011 25
02-02-2011 -3523
02-02-2011 532
02-02-2011 3
abs(25-3523+3253+532+3)=2963
so the total is 2963+438=3401
can any help? ... should i use for-each construction or is it not simpler??
thanks.
Bookmarks