+ Reply to Thread
Results 1 to 3 of 3

parentheses and order

  1. #1
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    parentheses and order

    Hello. I can never understand the parentheses rules in excel, especially for more complicated calculations.

    Here is an example:

    =((E11-E12)*E10-E13)*(1-E14)+E9*E14

    Why can't I write =(E11-E12)*(E10-E13)*(1-E14)+E9*E14

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: parentheses and order

    The evaluate formula tool might be useful for seeing how Excel is calculating a formula: http://office.microsoft.com/en-us/ex...483.aspx?CTT=1

    The two expressions you give are not algebraically equivalent. Using the above tool to follow the calculation should help you see where they are different. In the first calculation, you multiply e10 by the difference of e11 and e12, then subtract e13. In the second calculation, you take the difference of e11 and e12, then the difference of e10 and e13, then multiply these two differences.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: parentheses and order

    they are diferent assume all cells =2

    =((E11-E12)*E10-E13)*(1-E14)+E9*E14
    =((2-2)*2-2)*(1-2)+(2*2)
    order of operations in maths and excel
    means division ans multiplication are done before any subtraction or addition but the bits inside() are done first
    so that breaks down to
    =((0)*2-2)*(1-2)+(2*2)

    =(0-2)*(1-2)+(2*2)
    =-2*-1+4
    =2+4
    =6
    the other is
    =(E11-E12)*(E10-E13)*(1-E14)+(E9*E14)
    =(2-2)*(2-2)*(1-2)+(2*2)
    =0*0*-1+4
    =0+4
    =4
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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] Extracting all text from parentheses (including parentheses)
    By j4ke101 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-10-2013, 08:03 AM
  2. Replies: 6
    Last Post: 01-13-2011, 03:00 AM
  3. How to add parentheses...
    By hello_lpc in forum Excel General
    Replies: 4
    Last Post: 11-10-2008, 03:02 AM
  4. parentheses
    By Brendy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-15-2006, 05:25 PM
  5. [SOLVED] Removing parentheses
    By Brett in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-09-2005, 01:06 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