Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Absolute value

Hello,

I want to find the sum of a column, where the sum of the column adds the
absolute value of each cell. For example:

F1 = 10
F2 = -10
F3 = -5

So when I want to put in the equation in say F4, the answer would be 25 and
not -5

How do I do this for a whole column?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Absolute value

=SUMPRODUCT(SIGN(F1:F3), F1:F3)

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Jon B." <Jon wrote in message
...
Hello,

I want to find the sum of a column, where the sum of the column adds the
absolute value of each cell. For example:

F1 = 10
F2 = -10
F3 = -5

So when I want to put in the equation in say F4, the answer would be 25
and
not -5

How do I do this for a whole column?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Absolute value

=SUM(ABS(A1:A1000))

which is an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP

"Jon B." <Jon wrote in message
...
Hello,

I want to find the sum of a column, where the sum of the column adds the
absolute value of each cell. For example:

F1 = 10
F2 = -10
F3 = -5

So when I want to put in the equation in say F4, the answer would be 25

and
not -5

How do I do this for a whole column?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Absolute value

Hi
and just another alternative combining Rob's and Bob's solution :-)
=SUMPRODUCT(ABS(A1:A10))

which does NOT need to be array entered :-)

"Jon B." wrote:

Hello,

I want to find the sum of a column, where the sum of the column adds the
absolute value of each cell. For example:

F1 = 10
F2 = -10
F3 = -5

So when I want to put in the equation in say F4, the answer would be 25 and
not -5

How do I do this for a whole column?


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
Absolute Richard Stedman[_2_] Excel Discussion (Misc queries) 1 March 12th 09 02:17 PM
Absolute cell reference will not remain absolute. Mike K Excel Worksheet Functions 1 October 8th 08 07:12 PM
Absolute $ for a number jeel Excel Worksheet Functions 9 January 31st 08 02:59 PM
Absolute Value EG Excel Worksheet Functions 2 September 28th 06 02:29 PM
absolute value EG Excel Worksheet Functions 3 September 22nd 06 07:41 PM


All times are GMT +1. The time now is 03:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"