+ Reply to Thread
Results 1 to 3 of 3

abs() in EXCEL

  1. #1
    George
    Guest

    abs() in EXCEL

    Hi.
    I would like to calculate (only in one cell) the sum of absolute values (
    ABS() ) of a column. The column includes positive and negative numbers and
    some blank cells. I would like to reject the non number cells.
    Is this possible?
    Th.
    p.s.
    Could a form of SUM ( SUMIF, SUMPRODUCT, e.g.) help?


  2. #2
    Bondi
    Guest

    Re: abs() in EXCEL


    George wrote:
    > Hi.
    > I would like to calculate (only in one cell) the sum of absolute values (
    > ABS() ) of a column. The column includes positive and negative numbers and
    > some blank cells. I would like to reject the non number cells.
    > Is this possible?
    > Th.
    > p.s.
    > Could a form of SUM ( SUMIF, SUMPRODUCT, e.g.) help?


    Hi George,

    I guess one way to do it would be to use something like ( If your data
    is in A1:A10):

    =SUM(IF((A1:A10)<0,(A1:A10)*-1,A1:A10))

    (sure there is a more elegant way)

    It is an array formula so you have to activate it with Ctrl + Shift
    Enter

    Regards,
    Bondi


  3. #3
    Bob Phillips
    Guest

    Re: abs() in EXCEL

    =SUM(IF(ISNUMBER(A1:A20),ABS(A1:A20)))

    which is an array formula, it should be committed with Ctrl-Shift-Enter, not
    just Enter.

    if it just blanks, not text, this will suffice

    =SUM(ABS(A1:A20))

    also an array formula

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "George" <[email protected]> wrote in message
    news:[email protected]...
    > Hi.
    > I would like to calculate (only in one cell) the sum of absolute values (
    > ABS() ) of a column. The column includes positive and negative numbers and
    > some blank cells. I would like to reject the non number cells.
    > Is this possible?
    > Th.
    > p.s.
    > Could a form of SUM ( SUMIF, SUMPRODUCT, e.g.) help?
    >




+ 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