+ Reply to Thread
Results 1 to 3 of 3

Sum unique negative values and positive values

  1. #1
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Dubai
    MS-Off Ver
    Excel For Mac V16 365
    Posts
    145

    Sum unique negative values and positive values

    Hello!!

    i am looking a formula to sum unique neg and positive values in a column separately to two cells

    column A

    -100
    -100
    -100
    #n/a
    #n/a
    #n/a
    120
    120
    120
    120
    -190
    -190
    200
    200

    cell 1= -100+-190
    cell2 = 120+200

    is there a formula to achieve this ..i tried with sumif but dint get the required output

    thanks n advance

    Gokz

  2. #2
    Forum Contributor
    Join Date
    11-05-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: Sum unique negative values and positive values

    Hi Gokz,

    I've used a helper column to solve your problem.

    You'll need to put an error validation in your original data, though, because having #N/A in your data is never a good idea, and any formula you use won't work as long as you have those #N/As.

    Don't forget to click the little star at the bottom left of this post if you feel I helped!
    Attached Files Attached Files
    Taming the Excel dragon... www.TheExcelphile.com

  3. #3
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Sum unique negative values and positive values

    if your data are in A1:A14, try the following ARRAY formulae.

    for negative numbers:

    Please Login or Register  to view this content.
    or Excel 2007

    Please Login or Register  to view this content.

    for positive numbers:

    Please Login or Register  to view this content.
    or Excel 2007

    Please Login or Register  to view this content.
    Last edited by icestationzbra; 11-23-2012 at 12:50 AM. Reason: add'l ways
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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