Class ExcelCellUtils

java.lang.Object
cn.creekmoon.excel.util.ExcelCellUtils

public class ExcelCellUtils extends Object
  • Constructor Details

    • ExcelCellUtils

      public ExcelCellUtils()
  • Method Details

    • excelColumnToIndex

      public static int excelColumnToIndex(String column)
      excel列号转数字 A-->1 AA-->27
      Parameters:
      column - 列号字母 例如A,B,C
      Returns:
    • excelCellToColumnIndex

      public static int excelCellToColumnIndex(String cell)
      excel单元格获取列号数字 例如输入 B6 返回2 输入AA23 返回27
      Returns:
    • excelCellToRowIndex

      public static int excelCellToRowIndex(String cell)
      excel单元格获取行号数字 例如输入 B6 返回6 输入AA23 返回23
      Returns:
    • excelIndexToCell

      public static String excelIndexToCell(Integer rowIndex, Integer colIndex)
      excel列号和行号转为CellReference 例如输入 6,2 返回B6
      Returns:
    • main

      public static void main(String[] args)