class XlsUtils {

    public static int getColumnsNumberFromDimension(String dimension) {
        if (StringUtils.isEmpty(dimension)) {
            return 0;
        }
        String[] parts = StringUtils.split(dimension, ':');

        if (parts.length < 2) {
            return 0;
        }
        String secondPart = parts[1];

        return getColumnNumberFromCellRef(secondPart) + 1;
    }

    private  XlsUtils();

}