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.

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

Counting Comments in a Worksheet

Need to know how many comments are in a worksheet? You can figure out the count manually, or you can apply the handy ...

Discover More

Displaying Fields

Fields (sometimes called field codes) allow you to insert dynamic information in your documents. If you want to see the ...

Discover More

Jumping to the Ends of Table Columns

Need a quick shortcut to jump to the top or bottom of a table column? Here's the two shortcuts you are searching for.

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (menu)

Default Formatting for PivotTables

Wish there was a way to define how you want PivotTables formatted before you actually create the PivotTable? You may be ...

Discover More

Conditional Formatting in PivotTables

Conditional formatting is very powerful, and you can use it to dynamically adjust how your data looks. Excel allows you ...

Discover More

Maintaining Formatting when Refreshing PivotTables

When you refresh the data in a PivotTable, Excel can play havoc with whatever formatting you applied. Here's how to ...

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 four more than 5?

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.