+ Reply to Thread
Results 1 to 5 of 5

Math formula not working, yet calc can process it

  1. #1
    Forum Contributor
    Join Date
    05-16-2007
    Location
    USA
    MS-Off Ver
    MS Office 2016, Excel 2016
    Posts
    214

    Math formula not working, yet calc can process it

    I'm having trouble with a simple formula in Excel. Here is the gist of it:

    Lets say G12 is 780.99

    I want to divide that by 3 which gives me 260.33.

    I then want to take that number (260.33) and subtract it from G12 which would give me 520.66 (need this to be postive yet my formula causes it to compute in the wrong order.)

    and then divide that by 3 which would output my final total of 173.55.

    Easy enough to do using a calclator but I can't for the life of me make it work in Excel.

    Here is an example of what I have tried:

    =(G12/3) - G12/3

    Using =(G12/3) - G12 I get -520.66 but when I put the divide by 3, I get 0. Is this because excel doesn't divide negative numbers? How can I make the -520.66 a postive number if that is the issue? Even if it's not I still need it to be a postive number.

    Any suggestions?

    Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Math formula not working, yet calc can process it

    Try:

    =(G12-(G12/3))/3
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    05-16-2007
    Location
    USA
    MS-Off Ver
    MS Office 2016, Excel 2016
    Posts
    214

    Re: Math formula not working, yet calc can process it

    Quote Originally Posted by NBVC View Post
    Try:

    =(G12-(G12/3))/3
    you guys amaze me!!

    So can you break that down, how did you know where to put the parentheses? I guess I really need to read up on the rules of parentheses and brackets etc.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Math formula not working, yet calc can process it


  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Math formula not working, yet calc can process it

    Specific to Excel, see Help for About calculation operators, and then scroll down to Operator precedence

    =(G12-(G12/3))/3
    Or =2*G12/9
    Last edited by shg; 12-16-2010 at 11:59 AM.
    Entia non sunt multiplicanda sine necessitate

+ 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