+ Reply to Thread
Results 1 to 22 of 22

How to make a cell truly empty rather than a blank text?

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    How to make a cell truly empty rather than a blank text?

    Hi, I found we used to use IF() to make a cell like: =IF(A1>0, "Positive", "").

    For this one, the cell will have a blank text "", instead of a truly empty cell with no text. Can I ask how to make a cell a real empty one? So that when we count these cells, they are excluded.

    Thanks for teaching.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to make a cell truly empty rather than a blank text?

    =IF(A1>0, "Positive",0)

    And with format color you can hide the 0.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to make a cell truly empty rather than a blank text?

    oeldere, I'm sorry this does not work as 0 is still a value, not empty one. My question is how to make this really blank: not text, not number...

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to make a cell truly empty rather than a blank text?

    What you wanna do with the result.

    You want to count them?

    I think you can count them if the result is "".

    Otherwise add an excel file of your data, without confidentional information.

    P.s. VBA can also do that for you wiht clear content.

    I can't help you enough with VBA.

  5. #5
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to make a cell truly empty rather than a blank text?

    If I count with the function COUNTA(), then a problem comes: this function also counts those cells with "" values. I just want to exclude those cells when counting. I am thinking to a way to do this is to first make these cells with "" values empty, and then use COUNTA(). Is there a way to achieve this?

    Thanks!

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to make a cell truly empty rather than a blank text?

    maybe you can try this

    countif(a1:b25",<>""")
    Last edited by oeldere; 10-31-2012 at 08:16 PM. Reason: I changed the formula

  7. #7
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to make a cell truly empty rather than a blank text?

    Sorry, not working. Excel says this formula has an error.


    Quote Originally Posted by oeldere View Post
    maybe you can try this

    countif(a1:b25",<>""")

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to make a cell truly empty rather than a blank text?

    countif(a1:b25,<>""")

    I changed the "" after 25

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: How to make a cell truly empty rather than a blank text?

    Can you give a couple of rows of data and what your expect?
    HTH
    Regards, Jeff

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to make a cell truly empty rather than a blank text?

    =sumproduct(--(a1:a10<>"")) excludes cells containg null strings.
    Entia non sunt multiplicanda sine necessitate

  11. #11
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to make a cell truly empty rather than a blank text?

    This approach counts those cells with text values. What if I want to count both text and numeric values and ignore "" (blank text)?

  12. #12
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to make a cell truly empty rather than a blank text?

    Quote Originally Posted by shg View Post
    =sumproduct(--(a1:a10<>"")) excludes cells containg null strings.
    This worked!!! Very good knowledge.

  13. #13
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to make a cell truly empty rather than a blank text?

    What if I want to count both text and numeric values and ignore ""
    That's what the formula does.

  14. #14
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to make a cell truly empty rather than a blank text?

    Quote Originally Posted by jeffreybrown View Post
    Can you give a couple of rows of data and what your expect?
    I did some research, and it may be true that in simple Excel (not VBA), we can never make a cell truly empty with no values, without physically delete it.

  15. #15
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: How to make a cell truly empty rather than a blank text?

    @shg,

    I was going to offer...

    =SUMPRODUCT(--(LEN(B1:B10)>0))

    ...and it seems to produce what your formula does, so would you see this as another option?

  16. #16
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to make a cell truly empty rather than a blank text?

    Sure. It does add a function, though.

  17. #17
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to make a cell truly empty rather than a blank text?

    I notice that as long as a cell has some contents (e.g., a formula used to make it as blank text ""), then functions like =ISBLANK() will be not useful. That's why I was thinking to find a way to make the cell really an empty one. But seemingly that there is no way to do it.

  18. #18
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: How to make a cell truly empty rather than a blank text?

    How can you make the cell really empty when there is a formula in it?

    If you are not getting across what you want us to help with, then maybe a sample workbook with what you have and what you expect.

  19. #19
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to make a cell truly empty rather than a blank text?

    Quote Originally Posted by jeffreybrown View Post
    How can you make the cell really empty when there is a formula in it?

    If you are not getting across what you want us to help with, then maybe a sample workbook with what you have and what you expect.
    If we say, cell A1 has a value of 5, then for cell B1, can we do it like to make B1 an empty one: =IF(A1=5, truly empty, "value there in A1")

    This may be a logic, but no way to do it? Sorry for this 'insanity'.

  20. #20
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: How to make a cell truly empty rather than a blank text?

    I've been on this forum for a few days now and been working with formulas for just about as long.

    With you description in post #19, =IF(A1=5,"","value there in A1")

    I'm sorry but outside of this I just don't know what you are searching for or why.

  21. #21
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: How to make a cell truly empty rather than a blank text?

    Quote Originally Posted by jeffreybrown View Post
    I've been on this forum for a few days now and been working with formulas for just about as long.

    With you description in post #19, =IF(A1=5,"","value there in A1")

    I'm sorry but outside of this I just don't know what you are searching for or why.
    That also helped! At least I am assured that the only way we can do is to make it something like null strings "", rather than a 'blank' cell. Thanks a lot for your great advice.

  22. #22
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: How to make a cell truly empty rather than a blank text?

    You are very welcome. Thanks for the feedback.

+ 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