
Originally Posted by
sandy666
I used third party software to see what the hell is there, so I know there was CR/LF which is not standard in excel.
IMHO F&R is a good way, but maybe I'm wrong. Who knows?

I am going to disagree with the software, its certainly possible I am wrong but I further inspected the file. A carriage return at least would be a visible issue within the formula bar, IE you would see an additional line that you could place the cursor on.
If I am not mistaken Alt+Enter puts a carriage return in a cell. If you do this LEN = 1 on it.
I reviewed the XML of the file and I think it fits with my evaluation. When bringing data from an outside system it had content that Excel could not identify the data type or character of. This caused the XML tag for the shared string to break, which the cell and others with the issue referred to.
here is a snippet of XML from the Sheet1.xml file. Notice the red text. t=s means it contains a shared string. A shared string is a string that appears in multiple cells. Instead of storing the complete string in each cell individually, it stores the whole string in the sharedStrings.xml and all the cells reference it. The 0 is the index (starting at 0) that the shared string is stored in.
Notice how the first si tag has a <t/> closing tag but not an opening tag like the other shared strings.
This is further proven by resolving the issue in the file. If you enter i nthe cells and clear them out so that they are truely empty and review the sharedStrings.xml this entry with the broken tag is removed.
Bookmarks