+ Reply to Thread
Results 1 to 6 of 6

How to make a empty "" cell treated as blank

  1. #1
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    How to make a empty "" cell treated as blank

    I have a situation where i would like a cell to be treated as blank so i can use the COUNTA function,

    the formula I currently use sets the cells to empty

    =IFERROR(IF(INDEX($A$1:$A$15,H2,)=0,"",INDEX($A$1:$A$15,H2,)),"")

    don't need to worry about the workings behind it but essentially is there a way to get excel to read the "" as blank?
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to make a empty "" cell treated as blank

    One way could be this.

    =COUNTIF(B1:B10,"<>""")-COUNTIF(B1:B10,"")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: How to make a empty "" cell treated as blank

    yeah i thought about that one also. ill see if i can get it to work around.

    if there are any other ideas im all ears

    thanks though

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: How to make a empty "" cell treated as blank

    Assuming the returned values are text (otherwise you would use the COUNT() function):

    =COUNTIF(B1:B10,"?*")

  5. #5
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: How to make a empty "" cell treated as blank

    both work lovly. thanks.

    i really like that last one cutter

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: How to make a empty "" cell treated as blank

    You're welcome. Thanks for the 'star tap'.

+ 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