+ Reply to Thread
Results 1 to 7 of 7

What does "" Actually Equal While Being Used as a Blank?

  1. #1
    Registered User
    Join Date
    12-01-2016
    Location
    England
    MS-Off Ver
    Office 2010
    Posts
    4

    Post What does "" Actually Equal While Being Used as a Blank?

    Hi Guys,

    I started learning Excel a few months ago to create spreadsheets to help me with a hobby I have. I’ve been using this forum for a couple of months now and it has been a big help... but I wonder if someone could help me with a quick question please? It would be a big help!

    I initially had a spreadsheet which contained reoccurring zeros down various columns. To fix this I used the =IF(ISBLANK(cell),””,my formula) for each of these columns. This fixed the problems I was having (the zeros were interfering with certain formulas and giving out incorrect results), and it also improved the aesthetics of my spreadsheet… so far so good.

    This led to a problem in which my conditional formatting was being triggered (the cells were set to turn green with a value above zero). I managed to solve this issue by creating another conditional rule that formatted blank cells back to having no colour.

    After some research, I discovered that “” is not truly blank and that Excel actually puts a value to it. I have read that the value is a considered a piece of text. After testing the cells with the conditional formatting, it does appear that text triggers it and other figures behave as expected.

    Basically I would just like to make sure that having “” in these cells is not going to interfere with any of my calculations? I have tested and everything seems ok as far as I am aware.

    Thank you for your time!

  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,926

    Re: What does "" Actually Equal While Being Used as a Blank?

    hi, welcome to the forum

    1. instead if using =IF(ISBLANK(A1),""...
    you could also use =IF(A1="",""...
    2. "" enters a null into the cell, and while you are correct, the cell is no longer "empty", it shows as "blank".

    Depending on the function used (and how it is used), this can be a very effective way to not include cells based on certain conditions.
    However, as you have also seen, it can sometimes throw a spanner in the works, but knowing that "" could exist in a range, there are a few ways to cater for thar

    In your CF rule, instead of changing back, use an AND() function in the 1st rule to do 2 tests...
    =AND(A1<>"",A1>10)
    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
    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,926

    Re: What does "" Actually Equal While Being Used as a Blank?

    hi, welcome to the forum

    1. instead if using =IF(ISBLANK(A1),""...
    you could also use =IF(A1="",""...
    2. "" enters a null into the cell, and while you are correct, the cell is no longer "empty", it shows as "blank".

    Depending on the function used (and how it is used), this can be a very effective way to not include cells based on certain conditions.
    However, as you have also seen, it can sometimes throw a spanner in the works, but knowing that "" could exist in a range, there are a few ways to cater for thar

    In your CF rule, instead of changing back, use an AND() function in the 1st rule to do 2 tests...
    =AND(A1<>"",A1>10)

  4. #4
    Registered User
    Join Date
    12-01-2016
    Location
    England
    MS-Off Ver
    Office 2010
    Posts
    4

    Re: What does "" Actually Equal While Being Used as a Blank?

    Dear Ford,

    Thank you very much for your quick reply. Unfortunately, I have not been able to check up on my post until now, as I have been away!

    Thank you for your tips, I will have a play with these and see what I come up with

    As for "", your information has helped and I am confident that it isn't causing anymore problems. Its all basic math stuff, nothing special, so I can't see it causing a problem. Like I mentioned, I have also tested the data and everything seems ok.

    Thanks again!

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: What does "" Actually Equal While Being Used as a Blank?

    Hey Soes,

    In Excel the "" for nothing yet or*string of length zero is a lot easier than how vba in Access works. I've spent many hours dealing with NULL vs "" vs " ". See if the link below confuses you more..

    http://allenbrowne.com/vba-NothingEmpty.html
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: What does "" Actually Equal While Being Used as a Blank?

    Hey Soes,

    In Excel the "" for nothing yet or*string of length zero is a lot easier than how vba in Access works. I've spent many hours dealing with NULL vs "" vs " ". See if the link below confuses you more..

    http://allenbrowne.com/vba-NothingEmpty.html
    or
    http://allenbrowne.com/casu-11.html

  7. #7
    Registered User
    Join Date
    12-01-2016
    Location
    England
    MS-Off Ver
    Office 2010
    Posts
    4

    Re: What does "" Actually Equal While Being Used as a Blank?

    Haha oh dear! It certainly does! I'll have to get my VB head back on.. it's late here now so its Starwars time I'll have another look tomorrow

+ 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] Keeping particular cell blank if the related cells show "0" or "blank"
    By Anuru in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-24-2014, 05:30 AM
  2. [SOLVED] Delete Rows if a cell does not equal "Finished" or "Complete"
    By Justair07 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-27-2013, 12:40 PM
  3. [SOLVED] Cell Formula to count time with "Greater Than or Equal to" and "Less Than"
    By chriswhite1982 in forum Excel General
    Replies: 3
    Last Post: 06-16-2013, 12:30 AM
  4. Replies: 8
    Last Post: 12-31-2012, 05:19 PM
  5. [SOLVED] Delete row if cell in Column N equal "Different" or Column P equals "Blank"
    By Cyberpawz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2012, 08:25 AM
  6. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  7. Replies: 3
    Last Post: 12-14-2006, 01:36 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