+ Reply to Thread
Results 1 to 14 of 14

Test for blank cell should be "True" but "False" action is taken.

  1. #1
    Registered User
    Join Date
    01-28-2013
    Location
    Newark, DE
    MS-Off Ver
    Excel 2010
    Posts
    23

    Test for blank cell should be "True" but "False" action is taken.

    Why does a "false" value return from a cell that is visually blank. This only seems to happen in row 9. If I test the column with an ISBLANK the result is false but the "false" action is only taken in some cells. Puzzeling?

    Thanks for any insight or suggestions.

    Steve
    Newark, DE
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Test for blank cell should be "True" but "False" action is taken.

    Steve

    There are spaces in A8.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    01-28-2013
    Location
    Newark, DE
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Test for blank cell should be "True" but "False" action is taken.

    It should be blank but when I examine that cell with an ISBLANK formula the result is FALSE indicating that something is there.

    Steve

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Steve

    The cell has spaces, the formula is checking for "", an empty string.

  5. #5
    Registered User
    Join Date
    01-28-2013
    Location
    Newark, DE
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Test for blank cell should be "True" but "False" action is taken.

    Graphic_1.jpg

    I did check it with the =IF(A1,"","00") and it inserts "00" when A8 appears to be blabk (empty).

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Test for blank cell should be "True" but "False" action is taken.

    look at the position of the cursor when the cell is selected there is a space/spaces
    Attached Images Attached Images
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    It appears blank but it isn't, there are spaces in the cell.

    Try this in an empty cell.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If A8 was blank/empty this would return 0.

  8. #8
    Registered User
    Join Date
    01-28-2013
    Location
    Newark, DE
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Test for blank cell should be "True" but "False" action is taken.

    Hey, we're getting close. When I double click on the offending cell the cursor blinks at position 2 in the cell. There is definitely something there however it's invisible. Double clicking on a non-offending cell places the cursor in position 1.

  9. #9
    Registered User
    Join Date
    01-28-2013
    Location
    Newark, DE
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Test for blank cell should be "True" but "False" action is taken.

    Actually there appears to be two invisible characters in the cell.

  10. #10
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Could they perhaps be spaces?

  11. #11
    Registered User
    Join Date
    01-28-2013
    Location
    Newark, DE
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Test for blank cell should be "True" but "False" action is taken.

    Norie, Using the LEN command the result is 000-00-0001 for the offending cell. Blank cells show 000-00-0000.

    Steve

  12. #12
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Test for blank cell should be "True" but "False" action is taken.

    That means there is one character in the cell.

  13. #13
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Test for blank cell should be "True" but "False" action is taken.

    I've just checked the ASCII values of what's in A8 and it's 2 spaces.

  14. #14
    Registered User
    Join Date
    01-28-2013
    Location
    Newark, DE
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Test for blank cell should be "True" but "False" action is taken.

    Norie,

    Thanks! That explains it. Now to find out how two blanks got there.

    Steve

+ 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