2016-12-02 58 views

回答

1

您可以根據使用了Apache POI documentationgetCellTypeEnum方法獲得的細胞類型。它將返回CellType,它將具有以下單元格類型_NONE,BLANK,BOOLEAN,ERROR,FORMULA,NUMERICSTRING

_NONE-Unknown type, used to represent a state prior to initialization or the lack of a concrete type. 
BLANK-Blank cell type 
BOOLEAN-Boolean cell type 
ERROR-Error cell type 
FORMULA-Formula cell type 
NUMERIC-Numeric cell type (whole numbers, fractional numbers, dates) 
STRING-String (text) cell type