Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to display an empty box (HTML entity &#9633 □ or any other similar box will do) in Excel in a cell if and only if another cell has a value.

I've tried =IF(ISBLANK(C8),,□), but that gives me an Invalid Name Error. Any help?

share|improve this question

Check the syntax for the IF function. The second argument is the result if the first argument is true, the third argument is the result if the first argument is false. So =IF(ISBLANK(B1),"","□") will display the empty string if the cell B1 is blank, or the square box (note the quote marks) if not blank. Check also functions ISNUMBER etc instead of ISBLANK if you need to.

share|improve this answer

You must put quotes around your box:


The following ones also work:



share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.