+ Reply to Thread
Results 1 to 7 of 7

IF ISBLANK Help Please

  1. #1
    Forum Contributor
    Join Date
    04-09-2010
    Location
    Fort Myers, FL
    MS-Off Ver
    Excel for MAC
    Posts
    146

    IF ISBLANK Help Please

    I want 2 cells to be blank if another is blank, otherwise those 2 cells can have the data in there.

    Example: If there is a DATE in the "B" column, then I want "A", "C", and "E" columns to have their respected data. If there is no DATE in the "B" column, then I want "A", "C", and "E" columns to be blank.

    Thanks in advance!

    N528MW Revised.xlsx

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: IF ISBLANK Help Please

    Hi,

    Since columns A,C or E don't derive their values as a result of a formula you can't unless you resort to a macro.
    If you're happy to make the values invisible (but still present) then you could use conditional formatting to set the font colour to the same as the background colour.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: IF ISBLANK Help Please

    When you have a calculation, you can put it inside an IF statement so that it does one thing if something is true and another thing if that thing is false.
    So in C10
    =IF(ISNUMBER(B10), D9, "")
    which reads "If B10 is a number, then enter the value in D9, if it's not, put a blank ("")
    You can copy and paste that formula down the page.

    Does that help?
    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

  4. #4
    Registered User
    Join Date
    04-03-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    75

    Re: IF ISBLANK Help Please

    Seems like a plain old IF statement could handle this based off the sample spreadsheet.

    HOWEVER, your averages will not display a value if any of the cells the reference are blank. Would it be alright if instead your "blank" cells displayed 0 (they will display blank anyways and you could simply filter and delete/hide all 0's when finished). If not then your problem becomes slightly more complex (in my mind).

    In either case, just add IF ISBLANK in front of your existing formula making the true statement blank or 0 (I recommend 0) and the false your previous formula (seems like you already knew this based on your title). So cell E10 for example would be =IF(ISBLANK($B10),"",F9) or =IF(ISBLANK($B10),0,$F9) and copy down.

    Again, with this very simple solution, not using 0 will cause your averages to go all wonky.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: IF ISBLANK Help Please

    ...late edit.

    That will teach me to look a little further. I saw that C9 was a hard coded value and hence posted as I did. Clearly this is an exception since all other values in C are formulae, and hence you can use the sort of things others have sine mentioned.

  6. #6
    Forum Contributor
    Join Date
    04-09-2010
    Location
    Fort Myers, FL
    MS-Off Ver
    Excel for MAC
    Posts
    146

    Re: IF ISBLANK Help Please

    Thank you for all the responses... =IF(ISBLANK($B10),0,$F9) worked, and the "0" is perfect because I already had to hide zero's in my preferences.

    Thanks again!

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: IF ISBLANK Help Please

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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 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
  2. Help with ISBLANK function referring to a cell with another ISBLANK formula
    By camdameron in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-23-2011, 12:45 PM
  3. Using IsBlank in VBA
    By Conan Kelly in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-28-2006, 11:55 AM
  4. [SOLVED] ISBLANK
    By Gimpy815 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-24-2006, 02:10 PM
  5. If(ISBLANK)
    By Bill R in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11: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