Using ABS() in a range of cells

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, I got a table lookin something like this

-4
3
6
-3
-2

I want to add all these numbers up using ABS() But I cant seem to get it
right.
What I tried was =SUM(ABS(A1:A4)) but that seems to be the wrong funktion.
It works if I write =SUM(ABS(A1);ABS(A2)...) but this seems idiotic hehe

/Chris
 
=SUM(ABS(A1:A4)) is the right formula, but you need to commit it as an array
formula, meaning you commit it by pressing Ctrl-Shift-Enter, rather than
simply Enter
 
your formula needs to be array entered (ctrl+shift+enter) instead of simply
enter.
and after you did so you will see 2 braces before and after the formula as
shown below
{=SUM(ABS(A1:A4))}
 
The other option is the non-array formula...
=SUMPRODUCT(ABS(A1:A5))

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top