Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Hash Marks Displayed Instead of Cell Contents.

Hash Marks Displayed Instead of Cell Contents

by Allen Wyatt
(last updated May 10, 2014)

13

Bob is having some problems getting Excel to display the text within a cell. What is happening is that Excel is displaying a series of # signs instead of the text. He notes that he is not even close to the character limit of the cell.

The answer here depends on what you mean by "the character limit of the cell." Generally, such a statement means that you haven't reached the limit of the text that Excel can store in the cell—1,024 characters. It is important to keep in mind that what Excel can store and what it can display are two different things, as will shortly be discussed. If, however, by "character limit" you mean that the cell is wider than what is stored in the cell, that is a separate issue.

First things first: Excel can store up to 1,024 text characters in a cell, but it can only display up to 255 characters if the cell is formatted as text. If the cell contains more than 255 characters and the cell is formatted as text, then the hash marks are displayed. The solution is to change the format of the cell to general; then the text will display as you expect.

The more common occurrence is to see hash marks displayed when the cell contains a numeric (or date) value. If the cell is too narrow to display the value, then the hash marks are shown. They indicate that an "overflow" condition has occurred and that your value cannot be displayed as you want.

This is particularly common when displaying dates using a format that requires more horizontal space. For instance, if you display a date as "September 22, 2014," that date takes more column width to display than does "9/22/14." The solution is to simply widen the column so that the display doesn't overflow the width.

Dates will also display hash marks if you attempt to display a date value outside the range of dates that Excel can handle (1/1/1900 through 12/31/9999).

You should also note that you might see hash marks appear if you change the size of the font used in a cell. Change the font to a larger size, and Excel may not be able to display the value horizontally. If you can't widen the column then consider making the font smaller so that Excel can make the full value visible.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8441) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Hash Marks Displayed Instead of Cell Contents.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Returning a Weight and a Date

If you have two columns containing dates and weights from those dates, you may want to pick a date associated with a ...

Discover More

Deriving a Secant and Cosecant

Two rather common trigonometric functions are secants and cosecants. Excel doesn't provide functions to calculate these, ...

Discover More

Automatic Text in an E-mail

When creating an e-mail address hyperlink using the Insert Hyperlink dialog box, Excel allows you to enter a subject for ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!

More ExcelTips (menu)

Setting Orientation of Cell Values

Need the contents of a cell to be shown in a direction different than normal? Excel makes it easy to have your content ...

Discover More

Setting the Default Font Size for Comment Balloons

Straining your eyes to see the comments in a document? You can modify the size of the default font used for the comments, ...

Discover More

Creating Two-Line Custom Formats

Creating custom formats is a very powerful way to display information exactly as you want it to appear. Most custom ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 5 + 3?

2017-01-17 00:11:46

RK

Thank You for the help. It sorted out a long standing problem of mine


2016-03-24 06:25:57

Caroline

Good tip, thank you!


2016-01-18 07:10:06

Ian Avery

I found this issue in Excel 2007. For a cell with text comments but widening the column was not the solution, instead I had to change the cell formatting type from Text to General.


2015-12-17 08:04:48

Noel

I've been struggling with this problem for a year. Thanks for a complete fix.


2015-09-21 19:11:39

Jason

I understand that the hash marks appear after 255 characters when a cell is formatted as 'Text', however why is that the case?


2015-08-25 07:29:12

nike

thanks a lot, you have just saved me some time


2015-05-22 08:28:15

Isabel Cooke

Such a helpful post - thank you very much for this!


2015-05-07 12:24:43

deb peck

thank you much help
we are learning here
thank you once again we did it


2015-05-05 11:12:47

Shane

Is it possible to format the cell so that i just doesn't diplay the over flow value ex: 2:30pm shown in cell as 2:30?


2015-01-16 04:47:10

Rich M

Thank you. works a treat!


2014-12-17 11:15:41

asifa peter

thank you very much .... this info is really useful


2014-11-30 11:30:23

John B.

Gee thanks I never would've known!
(DUH)


2014-06-06 03:22:49

Jim Black

Thanks Allen you NAILED it mate!!!


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.