+ Reply to Thread
Results 1 to 9 of 9

Functions/Formulas Not Working Properly.

  1. #1
    Registered User
    Join Date
    08-06-2014
    Location
    Vevay, Indiana
    MS-Off Ver
    2007
    Posts
    3

    Functions/Formulas Not Working Properly.

    Can someone help me figure out why Excel is calculating the function in the attached file incorrectly? I have been using Excel for years and have never had this problem before.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Functions/Formulas Not Working Properly.

    What do you expect the results to be?

  3. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Functions/Formulas Not Working Properly.

    ?????

    =SUM(D3-(A3+B3)*C3)

    remove the pointless SUM

    =D3-(A3+B3)*C3

    substitute

    = 2.30 - (2.08 + 0) * 50,000
    = 2.30 - 2.08 * 50,000
    = 2.3 - 10,4000
    = -103997.7

    Exactly as expected.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Functions/Formulas Not Working Properly.

    Yep, it looks correct to me.

    In what way is it wrong?

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Functions/Formulas Not Working Properly.

    The only thing I can think of that might be making it result differently than you want is due to the order of calculations.
    It's not 'Wrong', just differrent from what you expected.

    Remove the SUM as Ben said, it's useless in that formula.

    =D2-(A2+B2)*C2
    It does A2+B2 First
    A2=2.08
    B2=0
    So A2+B2 = 2.08

    =D2-(2.08)*C2

    This might be where it's working differently than what you want.
    Excel does (2.08)*C2 first.
    Perhaps you want it to do D2-(2.08) first.

    If that's the case, you need an extra set of parens around that part to force Excel to do that part first.

    =(D2-(A2+B2))*C2

  6. #6
    Registered User
    Join Date
    08-06-2014
    Location
    Vevay, Indiana
    MS-Off Ver
    2007
    Posts
    3

    Re: Functions/Formulas Not Working Properly.

    I expect the result to be 11000

  7. #7
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Functions/Formulas Not Working Properly.

    In that case you messed up your algebra; adding the parens like Jonmo hypothesized will deliver 11,000.

  8. #8
    Registered User
    Join Date
    08-06-2014
    Location
    Vevay, Indiana
    MS-Off Ver
    2007
    Posts
    3

    Re: Functions/Formulas Not Working Properly.

    Jonmo1
    Thank You for the reply. Your suggestion was exactly correct, and provides the desired result.

    Thank You

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Functions/Formulas Not Working Properly.

    You're welcome

+ 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. [SOLVED] Dragging SUMPRODUCT formulas downward is not working properly
    By InterstateRentals in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-11-2014, 07:09 PM
  2. Problems working with Nested IF and AND Functions in formulas and Summation.
    By GinglesBingo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-25-2013, 06:31 PM
  3. [SOLVED] =SUM functions not SUMing properly.
    By EcoMike in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 5
    Last Post: 02-21-2013, 11:56 AM
  4. Excel 2007 : Formulas not working properly
    By azalner in forum Excel General
    Replies: 4
    Last Post: 07-30-2010, 06:22 PM
  5. UDF not working properly
    By demuro1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-09-2008, 04:36 PM

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