ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   SUM negatives numbers as positive (https://www.excelbanter.com/excel-discussion-misc-queries/140761-sum-negatives-numbers-positive.html)

Susan

SUM negatives numbers as positive
 
The range of numbers in a SUM formula includes some negative values, but I
would like the negative values included in the SUM as positives. I need the
negative values in the range to stay displayed as negatives.

Elkar

SUM negatives numbers as positive
 
You can use the ABS function to return the absolute value of a number. So,
something like this:

=SUM(ABS(A1:A100))

This is an Array formula and must be entered with CTRL-SHIFT-ENTER instead
of just Enter. If done properly, the formula should be enclosed in { }.

HTH,
Elkar


"Susan" wrote:

The range of numbers in a SUM formula includes some negative values, but I
would like the negative values included in the SUM as positives. I need the
negative values in the range to stay displayed as negatives.



All times are GMT +1. The time now is 11:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com