Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

You must put quotes around your box:

=IF(ISBLANK(C8),,"□")

The following ones also work:

=IF(ISBLANK(C8),"","□")

=IF(C8="","□",)

=IF(C8="","□","")
share|improve this answer
add comment

Your Answer

 
discard

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.