+ Reply to Thread
Results 1 to 6 of 6

Error in sum formula not correct output

  1. #1
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Error in sum formula not correct output

    Hi friends,
    I have inserted a sum formula in cell e6 but I'm not getting correct output. In this case I want the correct output in cell e6 '-2350' but I'm getting '2350' which is wrong.

    Please suggest me a correction.

    Thank you.

    Mukesh
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.85 for Mac MS 365
    Posts
    8,513

    Re: Error in sum formula not correct output

    Try it in a calculator, you are subtracting a negative value from zero (essentially zero minus a minus value) so you are getting a positive value.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.85 for Mac MS 365
    Posts
    8,513

    Re: Error in sum formula not correct output

    Do you need to note a debit as a minus? Doesn't the term debit already suggest that? If you don't need to note it as such then change your formula in col C to =ABS(IF(SUM(Y4:Y10)=0,0,IF(SUM(Y4:Y10)<0,VALUE(SUM(Y4:Y10)),""))) and you'll get the balance value in E6 you want.

  4. #4
    Forum Contributor
    Join Date
    12-19-2012
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: Error in sum formula not correct output

    Hi,

    You should enter your debits as a positive figure (its a standard math thing which I know but cant explain!!!!) if you do that then your calculation works ok.

    Or:

    Change your formula as example below to use absolute function which ignores the positive or negative value

    Please Login or Register  to view this content.
    Regards
    Steve

  5. #5
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: Error in sum formula not correct output

    Hello Sambo kid,
    Thank you for suggestion. The absolute formula gave me the correct output as per my requirement.

    Thank you.

    Mukesh

  6. #6
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: Error in sum formula not correct output

    Hi Steve@TRW,
    Thank you for suggestion. It's working fine. Both the formulas are giving correct output.

    Regards,

    Mukesh

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formula error no output
    By mukeshbaviskar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2014, 07:20 PM
  2. [SOLVED] How to correct formula error
    By krish T in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-12-2013, 03:22 AM
  3. Error in sum-formula that should be done in a correct way.
    By John_M in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2013, 05:47 PM
  4. [SOLVED] #name error on correct formula
    By morphine in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2012, 07:08 AM
  5. How do I correct error using the =IF(AND(formula in excel?
    By Redwing ML in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-01-2006, 09:30 AM

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