Results 1 to 5 of 5

Conditional formula with summation not returning correct result

Threaded View

  1. #1
    Registered User
    Join Date
    09-30-2011
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    19

    Question Conditional formula with summation not returning correct result

    Hey everyone! This isn't necessarily a problem persay, as there are other ways of doing what I'm trying to do, but it just boggles my mind why this has worked just fine for years and now it doesn't in this particular case.

    Here's what's going on, it's very simple:

    ______A___________B__________C__________D_______
    1)_-$16.00_______-$0.50_______"Total 4"____=sum(A1:B1)
    2)__-$4.50________$0.00______"Total 5"_____=sum(A2:B2)
    3) ===========================================
    4)_=sum(A1:A2)__=sum(B1:B2)__"Total"____PROBLEM CODE


    Here's the problem code: =if(sum(A4:B4)=sum(D1:D2),sum(A4:B4),"Error")

    The problem is that even though these two sums are equal I keep getting an error back! I've checked for formatting issues, but these are definitely numbers I'm trying to sum up. But since this anomaly is located in such a simple case, I don't really know what else to check for.

    Interestingly enough, if you start messing with the values in the spreadsheet I attached you'll get varying results. If B7 drops below -$244.65 suddenly the error disappears! Or if you zero out cell C5 the error disappears. None of this makes logical sense to me. Obviously I don't need to set up my spreadsheet like this, I can do it a different way and thereby eliminate the problem, but I wanna know what in the world is going on here!! Any help would be much appreciated!


    frustratingly yours,
    -Mike
    Attached Files Attached Files
    Last edited by Fattyfatfat Kid; 10-03-2011 at 02:06 AM.

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