+ Reply to Thread
Results 1 to 4 of 4

Subtract 2 cells if amount in cell B is greater than cell C I need the sum to go alt cell

  1. #1
    Registered User
    Join Date
    08-16-2021
    Location
    USA
    MS-Off Ver
    2019
    Posts
    2

    Subtract 2 cells if amount in cell B is greater than cell C I need the sum to go alt cell

    I want to subtract C21 from B21 if the amount in B21 is greater then the amount in C21 I want to sum to go into cell D21. if the amount in C21 is greater than the amount in B21 I want the sum to go into E21.

    I was using the formula below. But it isn't working. What am I doing wrong?

    =SUMIF(B21>C21)(B21-C21)

    TIA

    Luci
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,438

    Re: Subtract 2 cells if amount in cell B is greater than cell C I need the sum to go alt c

    Welcome to the forum.

    Try this in D21:

    =IF(B21>C21,B21-C21,"")

    And in E21:

    =IF(B21<C21,B21-C21,"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-16-2021
    Location
    USA
    MS-Off Ver
    2019
    Posts
    2

    Re: Subtract 2 cells if amount in cell B is greater than cell C I need the sum to go alt c

    Thank you That worked!!!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,438

    Re: Subtract 2 cells if amount in cell B is greater than cell C I need the sum to go alt c

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, 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)

Similar Threads

  1. Replies: 6
    Last Post: 08-18-2019, 10:21 PM
  2. [SOLVED] Add an amount to a cell if the value of one of the conditions is greater than X
    By execlass2 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-17-2019, 01:22 PM
  3. [SOLVED] subtract from a specific amount but keep total in same cell?
    By michaelDDW in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-03-2015, 08:37 PM
  4. Replies: 4
    Last Post: 03-14-2014, 09:54 AM
  5. Replies: 4
    Last Post: 12-02-2013, 03:27 AM
  6. [SOLVED] Identify a Cell When a Following Cell is a Certain Value Amount Greater
    By SKIPPER7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2013, 12:15 PM
  7. Replies: 3
    Last Post: 10-22-2009, 07:20 AM

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