Sum the Absolute Value of a range?

Does anyone know how to sum the absolute value of a range of cells in Numbers? The ABS function doesn't seem to take a range as an argument.

MacBook Pro with Touch Bar

Posted on Jun 22, 2020 6:48 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 23, 2020 2:20 AM

I suspect you'll need to make this a two stage operation:


  1. In a new column, use ABS to convert each value to it's absolute value.
  2. Sum the second column.


Column B cells have a formula generating a random integer between 7 and 25, that is then multiplied by either 1 or -1 depending on a random fraction's being larger than 0.600. It's only purpose here is to generate a set of mixed positive and negative values. A conditional highlighting rule applies yellow fill to cells containing values less than 0.


Column C has two formulas. C2, and filled down to C10: ABS(B2)

Row 11 is a Footer row. C11 contains this formula:           SUM(C)

B11 contains the equivalent sum formula for that column.


Regards,

Barry

12 replies
Question marked as Top-ranking reply

Jun 23, 2020 2:20 AM in response to One of Three

I suspect you'll need to make this a two stage operation:


  1. In a new column, use ABS to convert each value to it's absolute value.
  2. Sum the second column.


Column B cells have a formula generating a random integer between 7 and 25, that is then multiplied by either 1 or -1 depending on a random fraction's being larger than 0.600. It's only purpose here is to generate a set of mixed positive and negative values. A conditional highlighting rule applies yellow fill to cells containing values less than 0.


Column C has two formulas. C2, and filled down to C10: ABS(B2)

Row 11 is a Footer row. C11 contains this formula:           SUM(C)

B11 contains the equivalent sum formula for that column.


Regards,

Barry

Jun 23, 2020 11:11 PM in response to Badunit

@Badunit,


No. Either comparison operator can be changed to include the zero value. Including it in the formula simply acknowledges that zero is a possible value, not that it is a "positive" value.


In terms of the result, including zero values is not significant wrt the SUMIF, but will affect the results of other members of the —IF family, such as COUNTIF and AVERAGEIF.


Regards,

Barry



Jun 27, 2020 6:01 AM in response to Badunit

That's my belief as well and trying to see if that pans out in reality. I'm having a difficult time navigating Numbers on the laptop with the touchpad. I'm hoping that is learning curve until I learn the navigation and where all the common functions that I use are located. I'm not sure of the programming power (not heavy lifting) of Numbers is but I will find out.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Sum the Absolute Value of a range?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.