2009-12-01 2 views

답변

4

, 당신은 당신이 Excel에서 다음 입력하는 것처럼 정확히 셀에 수식을 사용할 수 있습니다

Row row4 = sheet.createRow(4); 
Cell cell = row.createCell(1); 

String cellsFrom_A1_to_A3 = "A1:A3"; 
cell.setCellFormula("SUM("+cellsFrom_A1_to_A3+")"); 

Cell cell2 = row.createCell(2); 
cell2.setCellFormula("A1+A2"); 
관련 문제