+ Reply to Thread
Results 1 to 5 of 5

SUM ABS(col) not the same as SUM(col) ?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-13-2005
    Posts
    27

    SUM ABS(col) not the same as SUM(col) ?

    I have a long list of negative values. I sum them and get the figure -34368.83


    I made a column next to it of the ABS() values of that column, so's I could remove the negative.

    Then I copied that second column and pasted it for Values only.

    So I have three column with the same numbers.

    Column A the values are negative.
    Column B the values are absolutes.
    Column C the values are absolutes and without a formula.

    Summing either of columns B or C gives the same value: but it is 42308.83 !

    Lucky I saw the difference. What's the catch here?

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Do you have positive values in column A by any chance?

    Use a formula like:

    =SUMIF(A:A,"<0")

    for less than zeros and/or

    =SUMIF(A:A,">0")

    for values greater than zero.

    Richard
    Richard Schollar
    Microsoft MVP - Excel

  3. #3
    Registered User
    Join Date
    06-13-2005
    Posts
    27
    Positive values? Well there's 1000 values in the list so I can't swear to it but I haven't seen any as I scrolled up and down looking for any.

    The lists were compiled from CSV data imported. The CSV data was exported from a bank's statements and these values should all be negative by their very nature - credit card withdrawals.

    You mean use these formula to check the results? OK. I did it and, right, there's a 3000 difference in the results.

    I've lost all my macro skills/knowledge. Essentially means I've lost all my spreadsheet skills entirely.

    Do you have a handy macro or something for ripping down a list and finding the values above zero or something like that?

    p.s. note the values still don't match. Now the minus quantities sum to 38338.8
    Last edited by abrogard; 10-16-2008 at 04:52 PM. Reason: add a p.s.

  4. #4
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Try applying autofilter to the column of data and then filtering on Less Than and/or Greater Than zero. This should show you immediately if there are any +ve values.

    Richard

  5. #5
    Registered User
    Join Date
    06-13-2005
    Posts
    27
    Thank you for your help and apologies for my lack of self-help.

    It is now sorted out. There were positive quantities in there. I didn't quite tell the truth when I said it should be all negative from the beginning. The bank statement downloads as negs for the drawings and positives for the pay ins to the account.

    There being so few 'pay ins' and being such large amounts I thought I'd weeded them all out. Well, you know what thought did.

    I finally did a bit of thinking instead of just screaming for help and realised I could search for the text that accompanies pay ins : "payment received, thank you". In a thousand transactions it was still fewer than fifty entries and I quickly went through them and found the missing culprit.

    I haven't troubled you for nothing, though, I learned about that "SUMIF()" function. That was new to me.

    thanks again,

    regards,

    ab

+ 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