+ Reply to Thread
Results 1 to 6 of 6

Subtract from column based on value from another column

  1. #1
    Registered User
    Join Date
    01-15-2012
    Location
    Lancaster, California
    MS-Off Ver
    Excel 2007
    Posts
    4

    Subtract from column based on value from another column

    Ok so what I am trying to do is I have a spreadsheet that has a sumif function in it based on different category names, what I want to do is if that column gets over a certain amount I want to take that value and subtract it from another cell.

    Column A Column B

    Utilities 300.00
    Rent 500.00


    The threshold for utilites is $300 so if it goes over that say to $350 the value for rent should drop to $450

    I did try to write a simple formula but I'm missing something, here is the formula I wrote: =IF((B3>300),(=sum(B4-B3)))
    Last edited by kevinali; 08-30-2012 at 05:50 PM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Subtract from column based on value from another column

    This should do it
    =IF(B3>300,B4-B3+300,B4)
    Last edited by Ace_XL; 08-30-2012 at 05:57 PM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    01-15-2012
    Location
    Lancaster, California
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Subtract from column based on value from another column

    Didn't get that at first the part where you are adding 300 but I think I just figured out that you are adding back in the value of B3 to keep the total value consistent at 800

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Subtract from column based on value from another column

    Yes thats corrcet! thsi way the formula will reduce rent if and only if utilities exceeds 300 by an amount that utilities is over 300

    Does this work for you?

  5. #5
    Registered User
    Join Date
    01-15-2012
    Location
    Lancaster, California
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Subtract from column based on value from another column

    works perfectly thank you

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Subtract from column based on value from another column

    @ kevinali

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as an infrequent user of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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