Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Sum of a range of absolute numbers

I need to sum a row of numbers that are both positive and negative. What I
would like to do is sum them as absolute values.

Example:
A1=2, B1=-3, C1=-1, D1=5
Sum(abs(A1:D1)) should equal 11 (2+3+1+5) not 3 (2-3-1+5).

This doesn't work. Does anyone have a suggestion on how to do this.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 154
Default Sum of a range of absolute numbers

SteveG,

Please use:
=SUMPRODUCT(ABS(A1:D1))

--
--Thomas [PBD]
Working hard to make working easy.
Answered your question? Click ''Yes'' below.


"SteveG" wrote:

I need to sum a row of numbers that are both positive and negative. What I
would like to do is sum them as absolute values.

Example:
A1=2, B1=-3, C1=-1, D1=5
Sum(abs(A1:D1)) should equal 11 (2+3+1+5) not 3 (2-3-1+5).

This doesn't work. Does anyone have a suggestion on how to do this.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default Sum of a range of absolute numbers

You need to enter your formula as an array formula. After you type it in,
press Ctrl-Shift-Enter instead of Enter. If you do it correctly, Excel will
wrap curly brackets {} around your formula (don't type them yourself.)

You could also use SUMPRODUCT instead (it's entered like any normal function):

=SUMPRODUCT(ABS(A1:D1))

Hope this helps,

Hutch

"SteveG" wrote:

I need to sum a row of numbers that are both positive and negative. What I
would like to do is sum them as absolute values.

Example:
A1=2, B1=-3, C1=-1, D1=5
Sum(abs(A1:D1)) should equal 11 (2+3+1+5) not 3 (2-3-1+5).

This doesn't work. Does anyone have a suggestion on how to do this.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Sum of a range of absolute numbers

Steve,

Your formula
=Sum(abs(A1:D1))

Will give the correct answer if you enter it by pressing Ctrl+Shift+Enter
and NOT just enter. If you do it correctly excel will put curly brackets
around it {}. You cant type these yourself.

Mike


"SteveG" wrote:

I need to sum a row of numbers that are both positive and negative. What I
would like to do is sum them as absolute values.

Example:
A1=2, B1=-3, C1=-1, D1=5
Sum(abs(A1:D1)) should equal 11 (2+3+1+5) not 3 (2-3-1+5).

This doesn't work. Does anyone have a suggestion on how to do this.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Sum of a range of absolute numbers

This worked great. Thanks.

"Thomas [PBD]" wrote:

SteveG,

Please use:
=SUMPRODUCT(ABS(A1:D1))

--
--Thomas [PBD]
Working hard to make working easy.
Answered your question? Click ''Yes'' below.


"SteveG" wrote:

I need to sum a row of numbers that are both positive and negative. What I
would like to do is sum them as absolute values.

Example:
A1=2, B1=-3, C1=-1, D1=5
Sum(abs(A1:D1)) should equal 11 (2+3+1+5) not 3 (2-3-1+5).

This doesn't work. Does anyone have a suggestion on how to do this.

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
Can you make a range absolute? Danielle Excel Discussion (Misc queries) 3 November 28th 07 11:08 PM
name range from absolute to relative WCO Excel Worksheet Functions 9 December 13th 06 08:13 PM
Can I change a column of calculated numbers to absolute numbers? Kate Bissell Excel Discussion (Misc queries) 3 October 25th 06 06:10 PM
Sum a range of absolute values lister_d_000169 Excel Worksheet Functions 4 June 1st 06 03:14 PM
How do I get the maximum absolute value of a range of numbers? biscuitsmom Excel Discussion (Misc queries) 2 January 19th 06 07:55 PM


All times are GMT +1. The time now is 10:25 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"