+ Reply to Thread
Results 1 to 3 of 3

sum of absolute values

  1. #1
    Registered User
    Join Date
    06-21-2007
    Posts
    25

    sum of absolute values

    is there a way to sum the absolute values of a column of numbers in a single formula? for example, it would refer to three cells containing 4,5,-6 and return 15.

    i can think of some roundabout ways to do it, like:

    =-sumif(range,"<0",range)+sumif(range,">0",range")

    but wondered if someone here knew a more direct method, something analagous to =sumif(abs(range)) although that obviously isn't quite it.

    thanks,
    peter

  2. #2
    Registered User
    Join Date
    06-21-2007
    Posts
    25

    sorry, never mind

    found it in another post

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565
    Hi there,

    Entered as an array, =SUM(ABS(RANGE)) will work. Have a look at
    http://exceltips.vitalnews.com/Pages...te_Values.html for more details.

    HTH

    Robert

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1