for(int k = 0;k<ws.getMergedCells().length;k++){
System.out.println(ws.getMergedCells()[k]);
System.out.println(ws.getMergedCells()[k].getTopLeft().getRow());
System.out.println(ws.getMergedCells()[k].getTopLeft().getColumn());
}

获取合并单元格中的信息
第一个syso输出的是Excel中的标志,比如合并的B3到B5 就是B3-B5
第二个syso输出的就是左上角的行的下标 B3就是2
第三个syso输出的就是左上角的列的下标 B3就是1


黑色头发:http://heisetoufa.iteye.com/