+ Reply to Thread
Results 1 to 7 of 7

multiple functions in one formula

Hybrid View

  1. #1
    Registered User
    Join Date
    03-31-2010
    Location
    Las Vegas, NV
    MS-Off Ver
    Excel 2003
    Posts
    14

    multiple functions in one formula

    Hi all. I cant really wrap my brain around how to write this formula. What I need is for my cell to display the difference between the sum of these two equations, SUM= A2-(G2*.75) and SUM= A2-(K2*.75). I need to subtract the sum of the second equation from the sum of the second equation. Im sure its simple but its been a long day......

    Thanks,

    Erik

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

    Re: multiple functions in one formula

    Any of these:

    =A2 - 0.75*G2 - (A2 - 0.75*K2)

    = 0.75*K2 - 0.75*G2

    =0.75*(K2 - G2)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-31-2010
    Location
    Las Vegas, NV
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: multiple functions in one formula

    Quote Originally Posted by shg View Post
    Any of these:

    =A2 - 0.75*G2 - (A2 - 0.75*K2)

    = 0.75*K2 - 0.75*G2

    =0.75*(K2 - G2)

    I used the top formula but I re wrote it a little becuase I noticed that I would need a range of cells in the second function. The formula now looks like:
    =B23 - 0.75*G23 - (B23 -0.75*K23:M23)

    The problem is all I get is a #value error.

    Thanks,

    Erik

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

    Re: multiple functions in one formula

    You can't introduce a range in an ordinary formula like that; what is it supposed to mean?

  5. #5
    Registered User
    Join Date
    03-31-2010
    Location
    Las Vegas, NV
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: multiple functions in one formula

    Here is how I changed the formula so that it worked but I want to use a range so I can add aadditional colums and have the caluculations auto adjust.

    =B2-0.75*G2-(B2-0.75*(K2+L2+M2))

    As you can see in the second function I am subtracting the sum of cells K2 to M2 multiplied by .75 from the contents of cell B2. I attempted to write the formula like this =B2-0.75*G2-(B2-0.75*(K2:M2))
    but recieved the same error.

    Erik

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

    Re: multiple functions in one formula

    I think you just need to introduce the SUM() function...

    =B23 - 0.75*G23 - (B23 -0.75*SUM(K23:M23))
    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.

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

    Re: multiple functions in one formula

    And if that works, so will this:

    = 0.75*SUM(K23:M23, -G23)

+ 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