+ Reply to Thread
Results 1 to 4 of 4

adding positive and negative numbers all as positive

  1. #1
    Forum Contributor
    Join Date
    01-15-2008
    Posts
    140

    adding positive and negative numbers all as positive

    i have numerous columns that have either a 1.00 or a -1.00 in various cells in that column. What i want to do is at the bottom of that column have the total number of entries that have been made, not just the sum of all the numbers. eg. there are 50 1.00's and 48 -1.00's...what i want is a SUM total that will give me 98, not 2.

  2. #2
    Forum Contributor GuruWannaB's Avatar
    Join Date
    01-24-2008
    Location
    An hour due East of Cowtown Ohio
    MS-Off Ver
    2010
    Posts
    421

    Re: adding positive and negative numbers all as positive

    Anything against using COUNTA function?

    example...you array of data is in A1:E100

    Please Login or Register  to view this content.
    I help because of the Pavlovian dog that resides in the inner me...so if you are happy with the results, please add to my reputation. It helps keep me motivated!



    Please mark your threads as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: adding positive and negative numbers all as positive

    could also go with
    Please Login or Register  to view this content.
    entered with CTRL+SHIFT+ENTER
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: adding positive and negative numbers all as positive

    Here's a non array formula

    =SUMPRODUCT((ABS(A1:E12)))
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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