public static String getExcelColumnName ( final int pnumber ) { StringBuilder converted = new StringBuilder ( ) ; // Repeatedly divide the number by 26 and convert the // remainder into the appropriate letter. int number = pnumber ; while ( number >= 0 ) { int remainder = number % TieConstants . EXCEL_LETTER_NUMBERS ; converted . insert ( 0 , ( char ) ( remainder + ' ' ) ) ; number = ( number / TieConstants . EXCEL_LETTER_NUMBERS ) - 1 ; } return converted . toString ( ) ; }
Gets the excel column name .