Beta

Generate Excel column names

Description:

The column labels in Excel are encoded as letters. The columns 1 - 26 are represented by 'A' - 'Z', the column 27 has the label 'AA', the column 52 -- 'AZ' etc.

Implement a method

NumberToLabel(long num)

which would convert the number for the column into such a label.

P.S.: This is the inversion of this Kata: http://www.codewars.com/kata/excel-sheet-column-numbers

Algorithms
Fundamentals

Stats:

CreatedJan 19, 2016
PublishedJan 19, 2016
Warriors Trained118
Total Skips12
Total Code Submissions215
Total Times Completed27
C# Completions27
Total Stars0
% of votes with a positive feedback rating88% of 16
Total "Very Satisfied" Votes14
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes2
Total Rank Assessments14
Average Assessed Rank
6 kyu
Highest Assessed Rank
1 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • alaudo Avatar
  • hobovsky Avatar
Ad