+ Reply to Thread
Results 1 to 9 of 9

IF Statement to leave cell blank if multiple cells are all blank

  1. #1
    Registered User
    Join Date
    03-12-2014
    Location
    Rhode Island, United States
    MS-Off Ver
    Excel 2003
    Posts
    12

    IF Statement to leave cell blank if multiple cells are all blank

    I am looking for an IF statement that would leave a balance cell blank if both the revenue and expense cells are blank, otherwise a formula would be calculated.

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: IF Statement to leave cell blank if multiple cells are all blank

    =IF(AND(REV_CELL="", EXP_CELL=""), "", Calculate formula goes here)

    Have fuin
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: IF Statement to leave cell blank if multiple cells are all blank

    did't refreshed and posted !(Deleted Post)
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  4. #4
    Registered User
    Join Date
    03-12-2014
    Location
    Rhode Island, United States
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: IF Statement to leave cell blank if multiple cells are all blank

    Thank you judgeh59, that works! Do you know of a way to write the IF statement without using and?

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: IF Statement to leave cell blank if multiple cells are all blank

    =IF(COUNT(REV_CELL,EXP_CELL)=2, Calculate, "")

    Just curious as to why you don't like AND?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: IF Statement to leave cell blank if multiple cells are all blank

    try below works as and only
    =IF((REV_CELL="")*(EXP_CELL="")), "", Calculate formula goes here)

  7. #7
    Registered User
    Join Date
    03-12-2014
    Location
    Rhode Island, United States
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: IF Statement to leave cell blank if multiple cells are all blank

    I am trying to write the formula in the simplest form possible.

  8. #8
    Registered User
    Join Date
    03-12-2014
    Location
    Rhode Island, United States
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: IF Statement to leave cell blank if multiple cells are all blank

    I ended up using this formula and it worked: =IF(C5&D5="","",E4+C5-D5)

  9. #9
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: IF Statement to leave cell blank if multiple cells are all blank

    well I'm glad you were able to figure out....just another way of doing things in XL....have a great day....

+ 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: 4
    Last Post: 06-24-2013, 07:17 AM
  2. Replies: 5
    Last Post: 05-29-2013, 12:27 AM
  3. MS 2010 - IF Statement to reutrn date or leave cell blank
    By persais in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-14-2013, 02:48 PM
  4. IF Statement to leave cell completely blank
    By david1987 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-28-2012, 10:27 AM
  5. Replies: 4
    Last Post: 07-15-2008, 01:42 PM

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