+ Reply to Thread
Results 1 to 4 of 4

Using a formula alongside "ISBLANK" request is resulting in bad values

  1. #1
    Registered User
    Join Date
    09-30-2018
    Location
    Texas
    MS-Off Ver
    Windows 10
    Posts
    2

    Using a formula alongside "ISBLANK" request is resulting in bad values

    Hello everyone,

    I am new to this forum, so please forgive me if I have posted this in an incorrect section. I've spent the last two hours reading forums and searching Google for assistance prior to coming here, but to no avail.

    Capture.PNG

    I have created a ledger and my goal is to have the balance (or I column) appear blank when there is not a value in the credit (E) and debit (F) cells.
    I encountered this issue when using a formula such as =I22-E24+F24 to calculate the balance. As a result of copying the formula down the column, the balance is repeated all the way down as shown below:

    Capture.PNG

    In an attempt to combat this, I tried using the following formula:

    =IF(OR(ISBLANK(E24),ISBLANK(F24)),"",I24-E24+F24)

    It works, however, if I enter an amount in the debit field, I have to enter a 0 in the credit field in order for it to calculate, resulting in $0.00 being erroneously displayed as displayed below:

    Capture.PNG

    I don't understand what I am missing. Does anyone have any insight on how this may work without entering an opposing "$0.00" in the credit/debit cells? Your help would be immensely appreciated.
    Attached Images Attached Images
    Last edited by HBuilder85; 09-30-2018 at 10:20 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Using a formula alongside "ISBLANK" request is resulting in bad values

    Hi, welcome to the forum

    1st, where do the contents of E and F come from?
    Note that a cell with a formula - no matter what that formula returns - is NOT blank. Blank means empty/contains nothing.
    I prefer to use ="" instead
    =IF(OR(E24="",F24=""),"",I24-E24+F24)

    If that still doesnt work, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-30-2018
    Location
    Texas
    MS-Off Ver
    Windows 10
    Posts
    2

    Re: Using a formula alongside "ISBLANK" request is resulting in bad values

    Thank you for the hospitality. I'm still learning my way around Excel and I appreciate you showing me a cleaner way to input the formula I was using! The contents of E and F are expenses that are entered manually, and do not have origin elsewhere. The issue I am having, using your formula as an example, is that if there isn't a value entered in F24, the calculation will not complete. In order for it to work, I have to enter a $0.00 dollar amount.

    I find it strange that =I24-E24+F24 works just fine without that additional step, so I am a little baffled as to why it isn't working.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Using a formula alongside "ISBLANK" request is resulting in bad values

    Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

+ 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. Formula not working =IF(ISBLANK(N4),"",IF(ISBLANK(N4),"",N4-M4))
    By amthyst826 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-17-2017, 12:26 PM
  2. [SOLVED] Link excel file to workbook "=IF(ISBLANK('Sheet1!A1),"",'Sheet1!A1) " is this reliable?
    By bala04msw in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-29-2016, 05:39 AM
  3. [SOLVED] Clean up If/Then formula, adding in "isblank" range
    By snuffnchess in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-08-2016, 02:16 PM
  4. [SOLVED] problem with IF cell contains "text" from resulting formula
    By fredderf81 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-11-2014, 02:04 PM
  5. [SOLVED] IF formula not working =IF(NOT(ISBLANK(M3)),"",IF(ISBLANK(L3),"",TODAY()-L3))
    By amthyst826 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2014, 02:37 PM
  6. [SOLVED] Formula needed to display "Pass" or "Fail" if a column contains any values other than "yes
    By andreindy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2013, 05:49 PM
  7. Replies: 3
    Last Post: 02-16-2011, 02:55 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