Text cell is displayed with hash characters

11

1

In Excel 2007, I see that the content of some cells are displayed as hash characters (###). These cells are formatted as text and their contents are displayed like this if the number of characters are more than 255.

Is there any way to fix this?

Ashwin Nanjappa

Posted 2011-07-19T11:32:28.173

Reputation: 8 705

I wouldn't be so bothered by this, except, when you copy the cell and paste it somewhere, it pastes the ##### hash marks instead of the actual masked value! This is extremely frustrating, because I have to make sure the cell is wide enough to display the actual value before I can copy the value. – ADTC – 2017-03-22T03:38:42.943

Answers

11

Cells formatted as text can only handle 256 characters. Anything more and they will be displayed with hash characters (###).

To get around this limitation, you can change the formatting of the cell to General. This format has a much larger character limit.

Ashwin Nanjappa

Posted 2011-07-19T11:32:28.173

Reputation: 8 705

3

This is excels way of telling you that the field does not fit in the cell.

If you make the cell-width "automatic," the hashes will dissappear.

This generally happens when you give a cell a specific format and Excel feels it doesn't fit in view.

EDIT: To make your cells auto-width:

Double-click on the right edge of the column header. That is, at the top, you have columns A,B,C... Say you want to expand the values in column E. You have to double-click on the edge between columns E and F.

This will expand the cell size. Also, if you have text in the cell, you can always right-click on the cell, click on Format Cells, and then put a check next to Wrap-text.

akseli

Posted 2011-07-19T11:32:28.173

Reputation: 3 796

2How do I make the cell width automatic? – Ashwin Nanjappa – 2011-07-19T12:08:58.293

Akseli: Thanks, but I found a better solution that works for longer text. – Ashwin Nanjappa – 2011-07-20T06:32:51.040

0

Try this. While opening the Excel file, select the text option. Here, one important thing is how you are writing the content to the Excel file. If you do it manually then do not write something which Excel does not allow. But if you want to write in your code then use POI/JExcel.

Aviraj

Posted 2011-07-19T11:32:28.173

Reputation: 9