+ Reply to Thread
Results 1 to 4 of 4

Add/Subtract IF cell is "FALSE"

  1. #1
    Registered User
    Join Date
    07-26-2013
    Location
    Minneapolis, USA
    MS-Off Ver
    Excel 365
    Posts
    8

    Add/Subtract IF cell is "FALSE"

    I have a column that has values TRUE and FALSE, they are the result of a "=A=B" formula. In column D I want to perform B-A IF value C is FALSE. Is there a way to do this? If value is true, do nothing or return 0. Heres what I am hoping for

    A....B...C...D

    1...1..TRUE..........
    2...2....TRUE..........
    3....3....TRUE..........
    4....5.....FALSE..... 5-4=1
    6.....7.....FALSE.....7-6=1
    8....8.....TRUE

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Add/Subtract IF cell is "FALSE"

    =if(c=false, b-a, "")

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Add/Subtract IF cell is "FALSE"

    Just a minor adjustment to the formula given by JieJenn:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

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

    Re: Add/Subtract IF cell is "FALSE"

    well that can be
    =IF(C1,"",B1-A1)
    "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] Test for blank cell should be "True" but "False" action is taken.
    By Aceso in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-09-2013, 05:47 PM
  2. Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)" not working
    By redders in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2011, 03:52 PM
  3. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  4. Replies: 7
    Last Post: 05-13-2006, 05:02 PM
  5. [SOLVED] IF(VLOOKUP("MYDATA", MYNAME, 4) = 0, "TRUE", "FALSE")
    By Souris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2005, 01:05 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