Functions in this class are not aware of special characters such as exclamation mark ! and comma , at all. AreaReference.generateContiguous and AreaReference.isContiguous are implemented naively in this sense, which is simply looking for commas as delimiters. References like these are all valid, but they'll fail unit tests: 'A,Sheet'!$A$1:$A$1 '!and,Sheet'!$A$1:$A$1 The first one fails AreaReference.generateContiguous, and the second one also fails AreaReference.isContiguous Sheet name is quoted with single quotation marks (luckily enough, it seems Excel doesn't allow escaping single quotation marks) This bug exists in the latest trunk code
Created attachment 36947 [details] Proposed patch to fix this issue
Patch applied with https://svn.apache.org/repos/asf/poi/trunk@1872567 - thanks