+ Reply to Thread
Results 1 to 7 of 7

if(or statement to return blank cell

  1. #1
    Forum Contributor
    Join Date
    12-02-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    152

    if(or statement to return blank cell

    Ok, I have a sheet for easy balancing of a checkbook (or other tracking) but I would like to see if I can modify the formula to return a blank cell if 0 (zero) is entered into the cell from which the computation takes place.

    Here is the formula I currently have:

    =IF(OR(F9>0,G9>0),H8-F9+G9,"")

    I'm linking a workbook.

    Thanks,
    Tom
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: if(or statement to return blank cell

    Try it like this

    =IFERROR(1/(1/IF(OR(F4>0,G4>0),H3-F4+G4,"")),"")
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: if(or statement to return blank cell

    alternative formula for cell H4

    H4=if(F4="",H3+G4,H3-F4)

    I don't understand your question though.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Contributor
    Join Date
    12-02-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: if(or statement to return blank cell

    Neither of those work. I apologize for the way I explained this, I see now that I worded it wrong in my spreadsheet. What cell E10 said was this "Here I want to have blank cells e10 and f10 return $100.00 in column G"...what it should have said was this; "Here I want to enter 0 into (one or the other or both) cells e10 and f10 and have it return $100.00 in column G".

    Thanks,
    Tom

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: if(or statement to return blank cell

    In G10:

    =IF(E10&F10="","",IF(LEFT(E10&F10)="0",100,""))

    In H4 and drag down

    =H3+IFERROR(G4-F4,0)
    Quang PT

  6. #6
    Forum Contributor
    Join Date
    12-02-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: if(or statement to return blank cell

    Still not working but again I notice a problem...I am so sorry. The column I wish to modify is H...I want to be able to enter 0's into either (or both) F and G and have H return a value. Since I would be entering 0 then H10 should return the same value as H9.

    Tom

  7. #7
    Forum Contributor
    Join Date
    12-02-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: if(or statement to return blank cell

    Would an isblank statement work here?

+ 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] If statement to return a blank cell
    By mrl in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-18-2014, 08:03 PM
  2. [SOLVED] If Statement to Return blank cell if 2 conditions aren't met?
    By karryan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-05-2014, 12:46 PM
  3. If statement to return blank if cell D1 is empty...
    By bendixboogie in forum Excel General
    Replies: 8
    Last Post: 11-11-2008, 05:00 PM
  4. If statement to return nothing if cell is blank
    By amusn in forum Excel General
    Replies: 5
    Last Post: 10-19-2007, 02:25 PM
  5. [SOLVED] Return blank cell if 'find' statement not true
    By Kanga 85 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-28-2006, 11:30 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