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: Text Truncated in PivotTable.

Text Truncated in PivotTable

Written by Allen Wyatt (last updated January 3, 2020)
This tip applies to Excel 97, 2000, 2002, and 2003


3

Anil complained that when he created a PivotTable, some of the text in some of the source cells was truncated when it was placed in the PivotTable. He wondered if there were a way around this.

The first thing to do is make sure that the text is actually being truncated. When text is transferred to a cell in a PivotTable, it works much the same as text in the original worksheet. This means that the text is "cut off" when there is data in the cell to the right of the text cell. The full text is still there, but it cannot be displayed because there is not enough room to do so within the cell.

Testing has shown, however, that PivotTables will only transfer up to 255 characters from a source cell. Anything after that is truncated. This limit seems to be hard coded into Excel, and there is no way around it that I could discover. The limit of 255 characters may seem arbitrary, and it is. I can only surmise that Microsoft needed to establish a length limit on text and figured that 255 characters should be sufficient for most purposes.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3394) 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: Text Truncated in PivotTable.

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

AutoFilling with Weekdays

Need to fill a range of cells with the days of the week? Excel makes it easy to do so using AutoFill.

Discover More

Complex Compound Formatting

Sometimes it can seem that the formatting needs of your document can easily outstrip the capabilities of Word. This is ...

Discover More

Working with Document Links

Word makes it easy to establish links between documents. Here's how to change and manage those links easily.

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (menu)

Suppressing Zero Values in PivotTables

PivotTables are great for digesting and analyzing huge amounts of data. But what if you want part of that data excluded, ...

Discover More

Setting Stable Column Widths in a PivotTable

When you update a PivotTable, Excel can take liberties with any formatting you previously applied to the PivotTable. ...

Discover More

Error in Linked PivotTable Value

Excel allows you to link to values in other workbooks, even if those values are in PivotTables. However, Excel may ...

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}] (all 7 characters, in the sequence shown) 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 7 + 0?

2021-04-22 20:40:47

Michael van Balen

This is not consistent. I pivoted a table with several 'comment' cells containing text strings greater than 255 characters. Only one was truncated for some reason.


2021-01-23 20:30:57

Roy

If the purpose had to do with "reporting summary information" then why would Excel show cell info at all?

Seems more likely to either be a holdover from earlier days in which a value like 2^8 was much more of a concern as resources were more limited and limiting what an individual function/functionality used was more of a concern.

Barring that, it could then have been a holdover to not "break" existing cross tables/pivot tables. After all, with hundreds of millions, billions really, of nice laid out such existing, suddenly having them break because some cells suddenly displayed 20-30,000 characters might've not appealed. "Beark" in the sense of suddenly no longer fitting in their expected layout, not so much in the sense of throwing off any data or the spreadsheet's own analysis of such. Just a human's willingness to look at it.

Barring that, perhaps they simply were presented with having to offer built-in ability to limit such, perhaps an unappealing programming prospect.

Further, the programming to change the 255 character limit might've been buried deep in existing material. To the outside eye, Excel seems to have quite a number of things buried too deeply, used by too many unrelated functions, to unwind profitably in more modern times. Too, too many follow-on problems to then fix as well for a small (by their considered (i'm sure) opinion) benefit.

However,, of course, it could simpkly be oversight, just a matter of neither occurring to them, nor having it brought to their attention by an outsider. Not that they have many ways for the latter to occur as they pay attention to something like their (provided) Excel User Forum only sporadically and always after-the-fact when some coincidental upgrade happens to seem like being responsive. Perfectly happy to hide coincidence and claim glory. That aside, I check sites like this quite a lot and this is the first time I've seen a question or compalint on the subject so I imagine I'd spot them this one if one got right down to it.

But being underpinned by a theoretical desire to enforce some concept of "summary information" upon their users? No, not even I would accuse MS of that, and I take a really jaundiced view of Monopolist Software and its motives and practices.


2019-07-27 05:32:08

Ron S

255 (2 to power of 8) is a (binary) number that is one of the "natural" limits in computing.

Pivot tables were designed to report summary information. So it is not surprising that MS put a relatively low limit on the number of digits included in the pivottable .


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.