+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : IF condition for a blank cell

  1. #1
    Registered User
    Join Date
    03-30-2010
    Location
    ontario, canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    IF condition for a blank cell

    Hello again,

    I have this time another question. I want to make a file that shows calculations only when I have data. When data cells are empty, cells with formula should not show anything.
    I attached a file as an example of what I am trying to do.
    Column A is the data column. Column B will show "o" or "x" depending on the value from column A. I used the following formula: =IF((AND($A1>2.9,$A1<4.9)), "o", "x")
    My problem is that I do not know how to write the condition to have nothing showing in column B, when column A is empty. You can see that I have "x" showing from B4 to B10.
    There is any way to make that showing nothing, if there is no data in A column?
    Thank you,
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-06-2010
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: IF condition for a blank cell

    Quote Originally Posted by kenwatch View Post
    Hello again,

    I have this time another question. I want to make a file that shows calculations only when I have data. When data cells are empty, cells with formula should not show anything.
    I attached a file as an example of what I am trying to do.
    Column A is the data column. Column B will show "o" or "x" depending on the value from column A. I used the following formula: =IF((AND($A1>2.9,$A1<4.9)), "o", "x")
    My problem is that I do not know how to write the condition to have nothing showing in column B, when column A is empty. You can see that I have "x" showing from B4 to B10.
    There is any way to make that showing nothing, if there is no data in A column?
    Thank you,
    The formula to keep blank spaces would be like this:

    =IF($A1="","","x")

    I'm not sure if you can manipulate that as a third variant for your formula.

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: IF condition for a blank cell

    =IF(ISBLANK(A1),"",IF((AND($A1>2.9,$A1<4.9)), "o", "x"))

    copy down

  4. #4
    Registered User
    Join Date
    03-30-2010
    Location
    ontario, canada
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: IF condition for a blank cell

    Thank you so much Teylyn.
    It worked like a charm. It seems that I have a lot of things to learn and this page is really helping me to do so.
    Thanks once again.

    Ken

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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